docker-compose up
and go to http://localhost:3000/
curl -X POST localhost:3000/authors/ \
-H "Content-Type: application/json" \
-d '{
"name": "Marek",
"email": "[email protected]",
"phonenumber": "777 333 111"
}'
curl -X GET localhost:3000/authors/ \
-H "Content-Type: application/json"
curl -X POST localhost:3000/websites/ \
-H "Content-Type: application/json" \
-d '{
"name": "Facebook",
"url": "https://www.facebook.com",
"author": 1
}'
curl -X PATCH localhost:3000/websites/1/ \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.google.com"
}'