her / rest.http
Vo Hoang Minh
init
6586af0
raw
history blame contribute delete
784 Bytes
###
# 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