GET User Info - AmayaHena/AreaDocumentation GitHub Wiki
Resume of GET User Info
On this page you'll find documentation about the following requests:
JWT Validity
Description: Say if your JWT is expired or not.
HTTP Request to verify the JWT validity:
http://localhost:8080//UI/tokenInfos?token="$RVToken"
Query String:
RVToken:
Definition: JWT token given on login or register
Type: JWT
HTTP response if successful:
Code: 200
Format: JSON
HTTP body response if successful:
{
"created_at": "$RVcreated_at",
"expiry": "$RVexpiry",
"error": "$RVerror"
}
Details about body response:
RVcreated_at:
Definition: timestamp for JWT creation
Value: human date
RVexpiry:
Definition: timestamp for JWT expiration
Value: human date
RVerror:
Definition: error about JWT validity
Value: string
Get Info
Description: Get Area(s) (action/reaction) for a given user.
HTTP Request to get Area(s) (action/reaction) for a given user:
http://localhost:8080/UI/info?token="$RVToken"
Query String:
RVToken:
Definition: JWT token given on login or register
Type: JWT
HTTP response if successful:
Code: 200
Format: JSON
Type: UserInfo