Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 339 Bytes

curl-api-command.md

File metadata and controls

8 lines (8 loc) · 339 Bytes

POST a JSON FILE

curl -X POST -H 'Content-Type: application/json' -d @book.json http://127.0.0.1:3888/books

POST a JSON DATA

curl -X POST -H 'Content-Type: application/json' -d '{"title":"Harry potter","sub_title":"Harry potter is a lewd movie and story","price":98000}' http://127.0.0.1:3888/books