Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The following URI prefixes are interchangeable:

  • /data
  • /data/archive
  • /REST


Get all Users

Return a listing of all users in XNAT

GET - /data/users

Parameters: none

Response:

{
    ResultSet: {
        Result: [
            {
                email: "string",
                firstname: "string",
                lastname: "string",
                login: "string",
                xnat_user_id: "integer"
            }
        ],
        title: "string",
        totalRecords: "integer" 
    }
}


Get one User

Return details on a specific user in XNAT.

GET - /data/users/{ID | username | email`}

Parameters:
One of these parameters must be supplied.

usernamestring
IDinteger
emailstring

Response:

{
    ResultSet: {
        Result: [
            {
                email: "string",
                firstname: "string",
                lastname: "string",
                login: "string",
                xnat_user_id: "integer"
            }
        ],
        title: "string",
        totalRecords: "integer" 
    }
}


  • No labels