REST interface for the social service (people). Used by OAUTH 2.0 apps/users.
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| code | condition |
|---|---|
| 200 | Successful retrieval of user's profile, reported in the 'result' field of the returned object |
| 500 | The error is reported into the 'message' field of the returned object |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) | the user's profile. The user in this case is the one bound to the token |
GET /2/people/profile
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"success" : true,
"message" : null,
"result" : {
"roles" : [ ],
"context" : "***",
"avatar" : "https://*****3D",
"fullname" : "John Smith",
"username" : "john.smith"
}
}