Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

URLhttp://<host>:<port>/catissuecore/rest/ng/specimen-lists
MethodGET
Content-Typeapplication/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
200All resourcesSpecimen-lists for current user is fetched successfully.
401All requestsAuthorization failed, User doesn’t have Authority.
500All requestsInternal server error, Encountered server error while performing operations.