Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter Param #77

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Filter Param #77

merged 1 commit into from
Jan 2, 2025

Conversation

iimpulse
Copy link
Member

@iimpulse iimpulse commented Jan 2, 2025

adding filter param to all terms endpoint to support multiple term querying #76

@iimpulse iimpulse requested review from gerring and bergsalex January 2, 2025 18:49
@iimpulse iimpulse self-assigned this Jan 2, 2025
@@ -24,7 +24,7 @@ class TranslationRepositorySpec extends Specification {

void "test find all by term"() {
when:
def term = termService.getAllOntologyTerms().find {it -> it.id == "HP:0000002"}.collect()
def term = termService.getAllOntologyTerms([]).find {it -> it.id == "HP:0000002"}.collect()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Groovy? Yew

@@ -28,8 +33,18 @@ public TermController(TermService termService, GraphService graphService) {
* @return List of all ontology terms
*/
@Get(uri="/", produces="application/json")
public List<OntologyTerm> all() {
return this.termService.getAllOntologyTerms();
public List<OntologyTerm> all(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test hitting this endpoint?

@iimpulse iimpulse merged commit 364e8e4 into main Jan 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants