-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathz_notes.txt
32 lines (27 loc) · 1.32 KB
/
z_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#postman :
- fake client for testing purpose
- send request to server and get response
- allow you to test your API from the comfort of your own IDE.
- being able to make all http requests (GET, POST, PUT, PATCH, DELETE)
#API:
- app programming interface
- allows apps to communicate with each other
- defined by a protocol such as REST or GraphQL
- take http request, process the data with a business logic, then return an HTTP response
- SOAP(built with xml only, high security), RestAPI (lightweight architecture, better performance, easy integration)
#HTTP Methods:
- GET: retrieve information from the server(fetch it)
- POST: submit data to be processed to the server
- PUT: update existing information on the server
- DELETE: delete existing information from the server
- PATCH: partial update of resource
#Request:
- consist of method , URL , headers and body part
- sent from the client to the server
#Response:
- consists of status code, header and body parts
- sent from the server back to the client
#Workflow in Postman:
1. Set up a new request: specify the method, url, add any necessary headers and parameters.
2. Send the request: click the "send" button to initiate the request.
3. View the results: The response will display below the request. You can view raw, formatted or previewed content depending on what type of data