Chinese Documentation : Access token REST API

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 VerbDefault PermissionDescriptionArguments

/accessTokens

 

POSTAllow

Add access token instance and persist to data source. Inherited from generic model API.

JSON object (in request body)
/accessTokensGETDenyFind all instances of accessTokens that match specified filter. Inherited from generic model API .

One or more filters in query parameters:

  • where
  • include
  • order
  • limit
  • skip / offset
  • fields
/accessTokensPUTDenyUpdate / insert access token instance and persist to data source. Inherited from generic model API .JSON object (in request body)
/accessTokens/idGETDenyFind access token by ID: Return data for the specified access token instance ID. Inherited from generic model API .id, the access token instance ID (in URI path)
/accessTokens/idPUTDenyUpdate attributes for specified access token ID and persist. Inherited from generic model API .

Query parameters:

  • data - An object containing property name/value pairs
  • id - The model id
/accessTokens/idDELETEDenyDelete access token with specified instance ID. Inherited from generic model API .id, access token ID (in URI path)
/accessTokens/id/existsGETDeny

Check instance existence: Return true if specified access token ID exists. Inherited from generic model API .

URI path:

  • id - Model instance ID
/accessTokens/countGETDeny

Return the number of access token instances that matches specified where clause. Inherited from generic model API.

Where filter specified in query parameter
/accessTokens/findOneGETDeny

Find first access token instance that matches specified filter. Inherited from generic model API .

Same as Find matching instances.