hello world
curl --location 'http://localhost:3000'
create product
curl --location 'http://localhost:3000/product' --header 'Content-Type: application/json' \
--data '{
"name": "sirop tjampolay",
"price": 1000,
"stock": 100
}'
get products
curl --location --request GET 'http://localhost:3000/products' --header 'Content-Type: application/json'
get product by id
curl --location --request GET 'http://localhost:3000/product?id=6827ac8dbe36af32d9761dd5' --header 'Content-Type: application/json'
get products (from external)
curl --location --request GET 'http://localhost:3000/external' --header 'Content-Type: application/json'