Fetching Specimen-Lists for current user
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Fetching Specimen-Lists for current user

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 current logged in user in OpenSpecimen.

Result

Response of this event contains summary of specimen lists that are either created by the current-user or shared with current-user.

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": "Carl",
            "lastName": "Flynn",
            "loginName": "Carl.Flynn@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.

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com