Summary
This page contains documentation for fetching specimen lists for current user. Response contains both the specimen types, the specimens which user has created and the specimens which are shared with the user. The user here is defined by user who is currently logged in into OpenSpecimen.
Result
The response of this request will contain the details of the newly created specimen-list.
URL | http://<host>:<port>/ catissuecore/rest/ng/specimen-lists |
Method | GET |
Content-Type | application/json |
Request | [ { "id": 45, "label": "SSCP Specimen List1", "owner": { "id": 1, "firstName": "James", "lastName": "Smith", "loginName": "james.smith@example.com" } }, { "id": 49, "label": "SSCP Specimen List2", "owner": { "id": 1, "firstName": "James", "lastName": "Smith", "loginName": "james.smith@example.com" } }, { "id": 46, "label": "SSCP Specimen List3", "owner": { "id": 1, "firstName": "JamesCarl", "lastName": "SmithFlynn", "loginName": "jamesCarl.smith@exampleFlynn@example.com" } } ] |
Error Cases
code | Applies to | Status Message |
---|---|---|
200 | All resources | Specimen-lists for current user is fetched successfully. |
401 | All requests | Authorization failed, User doesn’t have Authority. |
500 | All requests | Internal server error, Encountered server error while performing operations. |