EBISPOT / goci-rest

Apache License 2.0
4 stars 1 forks source link

Publications Rest API Endpoint to Get All Publications #63

Open sprintell opened 1 month ago

sprintell commented 1 month ago

As developer I want a publication API endpoint such that that when I send a GET request to the URL, hateoas compliant, paginated list of all publications in the database is returned in JSON Format This new endpoint:

{
   "pubmedId":"21041247",
   "publicationDate":"2010-11-01",
   "publication":"Am J Psychiatry",
   "title":"Genome-wide association study of suicide attempts in mood disorder patients.",
   "firstAuthor":{
    "fullname":"Perlis RH",
    "orcid":null,
    "affiliation":""
   },
   "authors":[
    {
        "fullname":"Perlis RH",
        "orcid":null,
        "affiliation":""
    },
    {
        "fullname":"Perlis RH",
        "orcid":null,
        "affiliation":""
    }
   ],
    "_links": {
            "self": {
            "href": "{base_url}/v1/publications/{pubmedId}"
            },
            "search": {
            "href": "{base_url}/v1/publications?study_accession_id"
            }
     }
}

Management Rules

Acceptance Tests

Additional details here

sajo-ebi commented 2 days ago

Local Code changes done