Skip to content

Commit

Permalink
[Fix] Hotfix for missing subterms endpoint in public terms controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed May 24, 2023
1 parent 3f16496 commit 6e150b8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ public List<ReadOnlyTerm> getSubTerms(@PathVariable("vocabularyIdFragment") Stri
return termService.findSubTerms(parent);
}

@GetMapping(value = "/terms/{localName}/subterms",
produces = {MediaType.APPLICATION_JSON_VALUE, JsonLd.MEDIA_TYPE})
public List<ReadOnlyTerm> getSubTerms(@PathVariable String localName,
@RequestParam(name = Constants.QueryParams.NAMESPACE) String namespace) {
final ReadOnlyTerm parent = getById(localName, namespace);
return termService.findSubTerms(parent);
}

@GetMapping(value = "/vocabularies/{vocabularyIdFragment}/terms/{termIdFragment}/comments",
produces = {MediaType.APPLICATION_JSON_VALUE, JsonLd.MEDIA_TYPE})
public List<Comment> getComments(@PathVariable("vocabularyIdFragment") String vocabularyIdFragment,
Expand Down

0 comments on commit 6e150b8

Please sign in to comment.