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

Gene Rest API Endpoint to Get Gene related Data #74

Open
sprintell opened this issue Jan 22, 2025 · 1 comment
Open

Gene Rest API Endpoint to Get Gene related Data #74

sprintell opened this issue Jan 22, 2025 · 1 comment
Assignees

Comments

@sprintell
Copy link
Member

sprintell commented Jan 22, 2025

As developer I want an api endpoint such that that when I send a GET request to the URL, hateoas compliant, paginated list of all mapped genes in the database is returned in JSON Format. Corresponding endpoints {base_url}/v2/genes/HBS1L for retrieving one gene accordingly should be added as well

{
          "geneName": "HBS1L",
          "geneDescription": "HBS1 like translational GTPase",
          "location": "6:134960378-135103056",
          "cytogenetic region": "6q23.3",
          "biotype": "protein_coding",
          "_links": {
            "self": {
              "href": "{base_url}/v2/genes/HBS1L"
            },
            "search": {
              "href": "{base_url}/v2/genes?"
            }
          }
 }

Management Rules

  • Rule 1: Endpoint - /v2/genes
  • Rule 2: HTTP Request Method - GET
  • Rule 3: Endpoint should accept search page and sort parameters as in /v2/genes?page=0&size=20&sort=name,desc
  • Rule 4: HATEOAS, sorting, pagination, and some search and filter specification

Acceptance Tests

  • Given no parameter, when the front end sends a GET request to the endpoint
  • Hateoas compliant list of publications is returned in JSON Format
  • Given sorting, pagination, and/or some search and filter parameters
  • When the front end sends a GET request to the same endpoint
  • Hateoas compliant filtered list of publications satisfying the conditions in the url parameter must be returned

Additional details here

@ljwh2 ljwh2 assigned sajo-ebi and ala-ebi and unassigned sajo-ebi Jan 22, 2025
@sprintell sprintell changed the title Gene Rest API Endpoint to Get All Gene related Data Gene Rest API Endpoint to Get Gene related Data Jan 24, 2025
ala-ebi added a commit to EBISPOT/gwas-rest-api that referenced this issue Feb 4, 2025
…t-to-Get-Gene-related-Data

Goci rest#74 gene rest api endpoint to get gene related data
ala-ebi added a commit to EBISPOT/gwas-data-commons that referenced this issue Feb 4, 2025
…t-to-Get-Gene-related-Data

Goci rest#74 gene rest api endpoint to get gene related data
@ala-ebi
Copy link
Contributor

ala-ebi commented Feb 4, 2025

Discussed with the team and we decided to use slim Solr to get the data as it has the field enrichments needed (from Ensembl), avoiding extra processing and Ensembl data caching.

ala-ebi added a commit to EBISPOT/gwas-data-commons that referenced this issue Feb 19, 2025
…nt-to-Get-Gene-related-Data

snake_case for gene dto
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

No branches or pull requests

3 participants