File size: 784 Bytes
6586af0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | ###
# Sample REST Client file
# Use "###" to separate requests
###
### Get all items
GET http://localhost:8000/ps
Accept: application/json
### Get a specific item by ID
GET http://localhost:8000/browser/start
Accept: application/json
### Get a specific item by ID
GET http://localhost:8000/connect
Accept: application/json
### Create a new item
POST http://localhost:8000/api/items
Content-Type: application/json
{
"name": "New Item",
"description": "This is a new item description",
"price": 19.99
}
### Update an existing item
PUT http://localhost:8000/api/items/123
Content-Type: application/json
{
"name": "Updated Item",
"description": "This item has been updated",
"price": 29.99
}
### Delete an item
DELETE http://localhost:8000/api/items/123 |