learning-project-01 / bookstore-app

3 stars 2 forks source link

create and list api for catalog item #4

Closed nginx500 closed 10 months ago

nginx500 commented 10 months ago

Task: https://github.com/learning-project-01/bookstore-app/issues/3

Create API for CatalogItem:

image

curl --location --request POST 'http://localhost:8080/catalogItems' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name":"Item Book Two",
    "price": 232.45
}'

List API for catalogItems

image

curl --location --request GET 'http://localhost:8080/catalogItems'