TC_API_CRUD_003 – PUT To All Brands List (PUT /api/brandsList)
Objective:
Verify that sending a PUT request to /brandsList returns the correct “Method Not Allowed” response (expected positive behavior).
Test Type / Level: Functional / API
Priority / Severity: Medium / Minor
1. Environment & Dependencies
- Base URL:
https://automationexercise.com/api
- Postman environment variable: ` = https://automationexercise.com/api`
- Collection: Automation Exercise – Brand API
- Authorization: None required
2. Preconditions
- API is online.
- Request method is set to PUT.
3. Test Data
Request
- Method:
PUT
- Endpoint:
/brandsList
- Headers:
Content-Type: application/json
- Body:
{
"brand": "SampleBrand"
}
4. Test Steps
- Open PUT To Brands List request in Postman.
- Confirm method is PUT.
- Click Send and review response.
5. Expected Results
- HTTP 405 Method Not Allowed returned.
- Response body includes:
{
"responseCode": 405,
"message": "This request method is not supported."
}
6. Actual Results
(To be filled after execution; attach screenshot of Postman response)
7. Status
Pass / Fail
8. Postconditions
9. Notes
- Confirms API adherence to correct HTTP verb handling.