1.) Authentication
Method | URL | Description |
---|---|---|
GET | /api/my_app/user/ | Checks if token is still valid and returns expires value for token. “phpipam-token” or "token" HTTP header must be present. |
/api/my_app/user/token/ | Returns token expiration date | |
/api/my_app/user/token_expires/ | Returns token expiration date | |
/api/my_app/user/all/ | Returns all users rwa app permissions required |
|
/api/my_app/user/admins/ | Returns admin users rwa app permissions required |
|
POST | /api/my_app/user/ | Authenticates user through “authorization” header. Successfull response contains “token” and “expires”. This token must be included in each following interactions with API as “phpipam-token” HTTP header. |
PATCH | /api/my_app/user/ | Same as GET, but it resets the expiration of token. “phpipam-token” or "token" HTTP header must be present. |
DELETE | /api/my_app/user/ | Removes (revokes) token. “phpipam-token” or "token" HTTP header must be present. |