Versions Compared

Key

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

General Information

...

ServiceAPIMethod
urac/account/getUserGET


Data Model: Users

Workflow: %Link to Architecture Page% Get User Account Flow

Input

...

Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
usernameQueryYESStringN/AThe User Name

...


Output

...

Valid Response

Code Block
languagejs
titleValid Response Sample
{
	"result": true,
	"data": {
		"..."	
	}
}

 


Invalid Response

Code Block
languagejs
titleError Response Sample
{
    "result":false,
    "errors":{
        "codes":[405],
        "details":[
            {
                "code":405,
                "message":"Unable to find User. Please try again."
            }
        ]
    }
}



Error Codes

 



Code
Description
405Unable to find User. Please try again.


Example (CURL)

...

Request

Code Block
languagebash
titleCalling Get User API
 > CURL -X GET http://127.0.0.1:4000/urac/account/getUser?username=john 

...