POST API
Instructions to Test a POST
API in Data Equity Studio
Follow these steps to test a POST API using Data Equity Studio.
1. Create the API Definition
- Define the API and ensure the data type is properly created.
- Assign a mock data type to the resource type to enable automatic mock data generation.
- Add the data type to the request body and responses for the API operation.
2. Deploy the API
- Navigate to the Policy Editor.
- Configure any required policies (e.g., API Key authentication, rate limiting).
- Click Deploy API to make your mock API available.
3. Test the API Using Postman
- Open Postman or any API testing tool.
- Use the Mock URL provided after deployment.
- Set the HTTP method to POST.
- Set the HTTP header x-fake-response = false
- Add a JSON payload in the request body to simulate creating a new resource.
- Send the request and observe the response.
- A quick verification using a GET call will show the addition of the new data