You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As developer I want an API endpoint such that when I send a GET request to the URL, hateoas compliant, paginated list of all body of works in the database is returned in JSON Format.
{
"body_of_work_id": 786767,
"journal":null,
"title":"Analysis of Genetic Host Response Risk Factors in Severe COVID-19 Patients",
"doi":"https://doi.org/10.1101/2020.06.17.20134015",
"publication_id":"GCP000027",
"pubmed_id":null,
"first_author":"Krystyna Taylor",
"publication_date":null,
"_links":{
"self":{
"href":"{base_url}/rest/api/v2/body-of-works/{bodyOfWorkId}"
},
"unpublished-studies":{
"href":"{base_url}/rest/api/v2/body-of-works/{bodyOfWorkId}/studies"
}
}
}
Management Rules
Rule 1: Endpoint - /rest/api/v2//body-of-works
Rule 2: HTTP Request Method - GET
Rule 3: Endpoint should accept search page and sort parameters as in /rest/api/v2/body-of-works?page=0&size=20
Rule 4: HATEOAS, sorting, pagination
Also: As developer I want a BodyOfWork details API endpoint such that when I send a GET request to the URL I can get full details of a single BodyOfWork data in JSON Format
14.1 - Management Rules
Rule 1: Endpoint - /rest/api/v2/body-of-works/{bodyOfWorkId}
Rule 2: HTTP Request Method - GET
Rule 3: Endpoint should accept bodyOfWorkId
Rule 4: Endpoint should return full attributes of the bodyOfWork
Rule 5: Endpoint should be accessible to all
As developer I want an API endpoint such that when I send a GET request to the URL, hateoas compliant, paginated list of all body of works in the database is returned in JSON Format.
Management Rules
Also: As developer I want a BodyOfWork details API endpoint such that when I send a GET request to the URL I can get full details of a single BodyOfWork data in JSON Format
14.1 - Management Rules
Rule 1: Endpoint - /rest/api/v2/body-of-works/{bodyOfWorkId}
Rule 2: HTTP Request Method - GET
Rule 3: Endpoint should accept bodyOfWorkId
Rule 4: Endpoint should return full attributes of the bodyOfWork
Rule 5: Endpoint should be accessible to all
Additional details here
The text was updated successfully, but these errors were encountered: