Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Is there any difference between PUT and POST operations?

Category: API Testing using Postman

PUT and POST operation are quite similar, except the terms of the result generated by them.

PUT operation is idempotent, so you can cache the response while the responses to POST operation are not cacheable, and if you retry the request N times, you will end up having N resources with N different URIs created on server.

GET /device-management/devices : Get all devices
POST /device-management/devices : Create a new device

GET /device-management/devices/{id} : Get the device information identified by “id”
PUT /device-management/devices/{id} : Update the device information identified by “id”
DELETE /device-management/devices/{id} : Delete device by “id”

Leave a Reply

Your email address will not be published. Required fields are marked *