Files
spring-boot-demo/doc/examples/api/product.md
2024-09-30 12:41:29 +07:00

17 lines
440 B
Markdown

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