Postman Mock Server with Exception response [Advanced] (Latest 2022) || postman mock API response

Опубликовано: 05 Октябрь 2024
на канале: TecnoTab
5,639
93

Advanced keywords:
x-mock-match-request-body
Content-type application/json
x-mock-match-request-headers
x-mock-response-code
=======================================================
Post request:
{
"channel": "tecnotab",
"action": "subscribe"
}
Response: 200
{
"status": "Subscribed",
"message": "thank you for subscribing to tecnotab"
}
Response: 422
{
"status": "not Subscribed",
"message": "please subscribe to tecnotab"
}
response: 500
{
"status": "new User",
"message": "user will only subscribe if they like your content"
}

=========================================================
Postman Mock Server Basics:    • Postman Mock Server (Latest 2022) || ...  
Pre request Script in postman:    • Pre request script in postman | Expla...  
Postman Environment Variable:    • Postman Environment Variables: API Te...  
Postman Collection Runner:    • Postman - Running a request multiple ...  

This video covers the other side of creating APIs - when you are ready to test your client-side calls to an API but the server-side code is not ready yet.

Postman allows you to create Mock Servers that you can use to create documentation as well as to generate test data for your client-side calls, Calls Can be RESTcalls or XML or any type of calls, The method of creating Mock API s will be same in all the cases. We are covering Get and Post request for JSON and XML request and response.
#postman #PostmanMock #Mockserver
Support Us by Connecting
Website: https://tecnotabs.com
Facebook:   / tecnotab99  
Instagram: https://www.instagram.com/?hl=en