add new api methods to product controller

This commit is contained in:
Denis Savosin
2024-09-30 12:41:29 +07:00
parent f12839a15f
commit 27595e08dc
11 changed files with 83 additions and 33 deletions

View 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'
```