The built-in access token model represents the access token that LoopBack creates for an authenticated user.
Page Contents
All of the endpoints in the access token REST API are inherited from the generic PersistedModel REST API. The reference is provided here for convenience.
Quick reference
URI Pattern | HTTP Verb | Default Permission | Description | Arguments |
---|---|---|---|---|
/accessTokens |
POST | Allow | Add access token instance and persist to data source. | JSON object (in request body) |
/accessTokens |
GET | Deny | Find instances of accessTokens that match specified filter. |
One or more filters in query parameters:
|
/accessTokens |
PUT | Deny | Update / insert access token instance and persist to data source. | JSON object (in request body) |
/accessTokens/id |
GET | Deny | Find access token by ID: Return data for the specified access token instance ID. | id, the access token instance ID (in URI path) |
/accessTokens/id |
PUT | Deny | Update attributes for specified access token ID and persist. |
Query parameters:
|
/accessTokens/id |
DELETE | Deny | Delete access token with specified instance ID. | id, access token ID (in URI path) |
/accessTokens/id/exists |
GET | Deny | Check instance existence: Return true if specified access token ID exists. |
URI path:
|
/accessTokens/count |
GET | Deny | Return the number of access token instances that matches specified where clause. | Where filter specified in query parameter |
/accessTokens/findOne |
GET | Deny | Find first access token instance that matches specified filter. | Same as Find matching instances. |