Type of API's
RESTful API (Architectural pattern)
- Most common API
- Uses JSON
- Has a defined structure in request
- Use of HTTP (GET, POST, etc..)
GraphQL
- Newcomer on the scene
- Uses a custom query language
- Single endpoint powers all of the API
Others
- Standalone JSON calls
- Web-socket are also used as API's'
Methods
- GET
- HEAD
- POST
- PUT
- DELETE
- CONNECT
- OPTIONS
- TRACE
- PATCH
Privacy
| Privacy | Availability | Documented |
|---|---|---|
| Public | Available to the public | Documented |
| Semi-Public | Semi-Available | Documented between two parties |
| Private | Available for the company | Documented Internally |