Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 737 Bytes

api.rest

File metadata and controls

41 lines (29 loc) · 737 Bytes

// Create Product POST http://localhost:8080/api/products HTTP/1.1 content-type: application/json

{
"name": "test-product", "description": "random-description", "price": 100.00

}

###

// Get Product By ID GET http://localhost:8080/api/products/23 HTTP/1.1 content-type: application/json

###

// Get All Products GET http://localhost:8080/api/products/ HTTP/1.1 content-type: application/json

###

// Update Product PUT http://localhost:8080/api/products/23 HTTP/1.1 content-type: application/json

{
"name": "updated-product", "description": "random-description-updated", "price": 100.00

}

###

// Delete Product DELETE http://localhost:8080/api/products/23 HTTP/1.1 content-type: application/json