Please enable JavaScript.
Coggle requires JavaScript to display documents.
REST API (Resources (Endpoint (The URL for a resource, For a given…
REST API
Resources
-
-
-
-
Endpoint
-
For a given endpoint, you can have GET, POST, PUT, DELETE
-
-
Security
-
Authorization
When you make a request, you send a server an access token
-
-
-
Documentation
-
Authorization
- Detailed steps on how to get an access token
-
-
- How to pass the token to server
- Token often expires after a fixed amount of time. Describe how to get a new token if this happens.
-
-
-
App keys (API keys)
Send to the server in exchange for an access token so that each API request is associated with the registered app.
-
Characteristics
-
-
-
Use any data format
-
-
Media types, such as images, sound files, etc
-
-
-
Request
-
Anatomy
-
-
Query parameters
-
-
-
-
-
-
Documentation
-
-
-
-
Notes
If the values are limited to a set, put that in a note
-
Body
-
-
Can be any format; usually JSON or XML; can also be media files (image, video, sound files)
-
-
Documentation
-
URL in response
If the response returns a huge amount of data, return limited data using URL links to more data
-
Object section
API requests return the same type of data, so the response info and sample responses are redundant
-
-
Errors
-
Documentation: A table with code, description, note
-
-
Response
Can be any data format
Media types, such as images, sound files, etc
-
-