Hi Guys,
In this video we will learn to mock api response and to parse complex json
Follow us on Instagram
/ testing.gyan
Connect with us on LinkedIn
Tarun Prashar - / tarun-prashar-8335b774
Jatin Sukhija - / jatin-sukhija-ab2aa8147
API doc
To submit or view an order, you need to register your API client.
POST /api-clients/
{
"clientName": "Testing",
"clientEmail": "[email protected]"
}
Submit an order
POST /orders
Allows you to submit a new order. Requires authentication.
The request body needs to be in JSON format and include the following properties:
• bookId - Integer - Required
• customerName - String - Required
Example
POST /orders/
Authorization: Bearer Token
{
"bookId": “1”,
"customerName": "John"
}
The response body will contain the order Id.