mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
add new api methods to product controller
This commit is contained in:
16
doc/examples/api/product.md
Normal file
16
doc/examples/api/product.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```shell
|
||||
curl --request GET \
|
||||
--url 'http://localhost:8080/api/product/179cffdc-90f8-4627-985d-3d9c88dff5d7'
|
||||
```
|
||||
|
||||
```shell
|
||||
curl --request POST \
|
||||
--url http://localhost:8080/api/product \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name":"product-tree","description":"some other product","price":30000}'
|
||||
```
|
||||
|
||||
```shell
|
||||
curl --request DELETE \
|
||||
--url 'http://localhost:8080/api/product/179cffdc-90f8-4627-985d-3d9c88dff5d7'
|
||||
```
|
||||
Reference in New Issue
Block a user