Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class V1OntologyTermController {

@RequestMapping(path = "/{onto}/terms", produces = {MediaType.APPLICATION_JSON_VALUE,
MediaTypes.HAL_JSON_VALUE}, method = RequestMethod.GET)
private HttpEntity<PagedModel<V1Term>> termsByOntology(
public HttpEntity<PagedModel<V1Term>> termsByOntology(
@PathVariable("onto")
@Parameter(name = "onto",
description = "The ID of the ontology. For example for Data Use Ontology, the ID is duo.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private HttpEntity<PagedModel<V1Term>> getTermsByIri(@PathVariable("iri")
}

@RequestMapping(path = "", produces = {MediaType.APPLICATION_JSON_VALUE, MediaTypes.HAL_JSON_VALUE}, method = RequestMethod.GET)
private HttpEntity<PagedModel<V1Term>> getTerms(
public HttpEntity<PagedModel<V1Term>> getTerms(
@RequestParam(value = "iri", required = false)
@Parameter(name = "iri",
description = "The IRI of the term.",
Expand Down Expand Up @@ -106,7 +106,7 @@ private HttpEntity<PagedModel<V1Term>> getTerms(
}

@RequestMapping(path = "/findByIdAndIsDefiningOntology/{iri}", produces = {MediaType.APPLICATION_JSON_VALUE, MediaTypes.HAL_JSON_VALUE}, method = RequestMethod.GET)
private HttpEntity<PagedModel<V1Term>> getTermsByIdAndIsDefiningOntology(@PathVariable("iri")
public HttpEntity<PagedModel<V1Term>> getTermsByIdAndIsDefiningOntology(@PathVariable("iri")
@Parameter(name = "iri",
description = "The IRI of the term, this value must be double URL encoded",
example = "http%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FDUO_0000017") String termId,
Expand All @@ -121,7 +121,7 @@ private HttpEntity<PagedModel<V1Term>> getTermsByIdAndIsDefiningOntology(@PathVa
}

@RequestMapping(path = "/findByIdAndIsDefiningOntology", produces = {MediaType.APPLICATION_JSON_VALUE, MediaTypes.HAL_JSON_VALUE}, method = RequestMethod.GET)
private HttpEntity<PagedModel<V1Term>> getTermsByIdAndIsDefiningOntology(
public HttpEntity<PagedModel<V1Term>> getTermsByIdAndIsDefiningOntology(
@RequestParam(value = "iri", required = false)
@Parameter(name = "iri",
description = "The IRI of the term",
Expand Down
Loading