| ### |
| # 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 |