| Method | Meaning | Typical Use |
|---|---|---|
| GET | Retrieve data | Get pet information |
| POST | Create data | Add a new pet |
| PUT | Replace data | Update an existing pet |
| PATCH | Partially update data | Update specific fields |
| DELETE | Remove data | Delete a pet |
GET. If you want to add a new pet, you would use POST.GET /pets/{id}{id} = path parameter that you replace with the actual pet's IDhttps://api.petstoreapi.com/v1/pets/pet_1Nv0FGQ9RKHgCVdKpet_1Nv0FGQ9RKHgCVdK is the pet ID you want to look up./users instead of /getUsers./users/1234/orders means all orders for user 1234.{petId} allow you to refer to specific resources./pets for all pets) and singular for specific items (/pets/12345).| Action | Method | Path | Description |
|---|---|---|---|
| Get a pet | GET | /pets/{id} | Retrieve information about a specific pet |
| Create a pet | POST | /pets | Create a new pet with provided data |
| Update a pet | PUT | /pets/{id} | Replace an existing pet record |
| Delete a pet | DELETE | /pets/{id} | Remove a specific pet |
| List pets | GET | /pets | Retrieve a list of pets |
GET /pets/pet_1Nv0FGQ9RKHgCVdK β Get pet info
DELETE /pets/pet_1Nv0FGQ9RKHgCVdK β Remove petGET will usually not accept a body, while POST and PUT often require one.{} must be replaced with actual values./pets?status=AVAILABLE).