# Petstore (xample.in) # Works with the VS Code REST Client and the JetBrains HTTP Client. # Uncomment X-Sandbox in a request to keep its changes for one hour. @baseUrl = https://swapi.xample.in/petstore @sandbox = my-sandbox ### Update an existing pet PUT {{baseUrl}}/pet Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/json { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "string" ], "tags": [ { "id": 1, "name": "string" } ], "status": "available" } ### Add a new pet to the store POST {{baseUrl}}/pet Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/json { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "string" ], "tags": [ { "id": 1, "name": "string" } ], "status": "available" } ### Finds Pets by status GET {{baseUrl}}/pet/findByStatus?status=available Accept: application/json # X-Sandbox: {{sandbox}} ### Finds Pets by tags GET {{baseUrl}}/pet/findByTags?tags=string Accept: application/json # X-Sandbox: {{sandbox}} ### Find pet by ID GET {{baseUrl}}/pet/1 Accept: application/json # X-Sandbox: {{sandbox}} ### Updates a pet in the store with form data POST {{baseUrl}}/pet/1?status=string Accept: application/json # X-Sandbox: {{sandbox}} ### Deletes a pet DELETE {{baseUrl}}/pet/1 Accept: application/json # X-Sandbox: {{sandbox}} ### uploads an image POST {{baseUrl}}/pet/1/uploadImage Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/octet-stream < ./file.bin ### Returns pet inventories by status GET {{baseUrl}}/store/inventory Accept: application/json # X-Sandbox: {{sandbox}} ### Place an order for a pet POST {{baseUrl}}/store/order Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/json { "id": 10, "petId": 198772, "quantity": 7, "shipDate": "2026-10-20T10:00:00Z", "status": "approved", "complete": true } ### Find purchase order by ID GET {{baseUrl}}/store/order/1 Accept: application/json # X-Sandbox: {{sandbox}} ### Delete purchase order by ID DELETE {{baseUrl}}/store/order/1 Accept: application/json # X-Sandbox: {{sandbox}} ### Create user POST {{baseUrl}}/user Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/json { "id": 10, "username": "theUser", "firstName": "John", "lastName": "James", "email": "john@example.com", "password": "12345", "phone": "12345", "userStatus": 1 } ### Creates list of users with given input array POST {{baseUrl}}/user/createWithList Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/json [ { "id": 10, "username": "theUser", "firstName": "John", "lastName": "James", "email": "john@example.com", "password": "12345", "phone": "12345", "userStatus": 1 } ] ### Logs user into the system GET {{baseUrl}}/user/login?username=string&password=string Accept: application/json # X-Sandbox: {{sandbox}} ### Logs out current logged in user session GET {{baseUrl}}/user/logout Accept: application/json # X-Sandbox: {{sandbox}} ### Get user by user name GET {{baseUrl}}/user/user1 Accept: application/json # X-Sandbox: {{sandbox}} ### Update user PUT {{baseUrl}}/user/user1 Accept: application/json # X-Sandbox: {{sandbox}} Content-Type: application/json { "id": 10, "username": "theUser", "firstName": "John", "lastName": "James", "email": "john@example.com", "password": "12345", "phone": "12345", "userStatus": 1 } ### Delete user DELETE {{baseUrl}}/user/user1 Accept: application/json # X-Sandbox: {{sandbox}}