1 | Postman > | JSON :- (JavaScript Object Notation) | { “Object1” : [ { “keyA” : value, “keyB” : value }, { “keyA” : value, “keyB” : value } ] “Object2” : { “key1” : value, “key2” : value } } | Object – Data get & put | ||
URL: | Baseurl/endpoint | |||||
QuerryParams | Key / Value Pair | start with ? | If you want to add multiple query parameters, an ‘&’ sign is placed in between them to form what is known as a query string. | https://example.com/articles?sort=ASC&page=2 | ||
METHOD: | GET, POST, PUT, DELETE, PATCH | PUT is used to update all data and PATCH is used to update partial data | for POST, use body > x-www-form-urlencoded | |||
BODY: | raw > JSON | |||||
API Codes | https://restfulapi.net/http-status-codes/ | 1xx: Informational – Communicates transfer protocol-level information. 2xx: Success – Indicates that the client’s request was accepted successfully. 3xx: Redirection – Indicates that the client must take some additional action in order to complete their request. 4xx: Client Error – This category of error status codes points the finger at clients. 5xx: Server Error – The server takes responsibility for these error status codes. | ||||
API Contract | It is the document which have all the details for API’s | |||||
JSON Pretty Format Converter | https://jsonformatter.org/json-pretty-print | |||||
Sample API’s for Testing : Link | https://reqres.in | https://dummy.restapiexample.com | ||||
Psotman Tutorial | https://www.tpointtech.com/postman | Read about authorization, Cookies, Asserts & Collections in Postman |