API Questions - Interview
API Questions - Interview
API Questions - Interview
Challenges
- How to maintain the flow - response of one request to pass to another test
- Different types of param validation
- Validation of input
- Validation of output
- parameter categorisation
GET
- retrieve resource from end point
- remain in browser history / bookmarked (so no sensitive info)
POST
- Create resource
- Never cache/ bookmarked / never remain in browser history
- No restriction on data length
PUT
- Create / Update
- Never cache
PATCH
- update partial resource
DELETE
- delete
OPTIONS
- returns all options and available HTTP methods
HEAD - returns the header info (get)
TRACE - trace the request
Status Code
200 - ok - Successful Post request
201 - new resource created