Skip to content

ifundeasy/simple-crud

Repository files navigation

simple-crud

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published