docker-compose run --rm artists npm install
docker-compose run --rm albums npm install
docker-compose up --detach
curl --include --request GET \
http://artists.localhost/v1/artists
HTTP/1.1 200 OK
Content-Length: 2
Content-Type: application/json; charset=utf-8
Date: Tue, 24 Aug 2021 22:39:04 GMT
[]
curl --include --request POST \
--header 'Content-Type: application/json' \
--data '{"name": "Dio"}' \
http://artists.localhost/v1/artists
HTTP/1.1 201 Created
Content-Length: 46
Content-Type: application/json; charset=utf-8
Date: Tue, 24 Aug 2021 23:16:44 GMT
{"_id":"452fae7f-7945-4442-bfc6-d59253f668cf"}
curl --include --request GET \
http://artists.localhost/v1/artists/452fae7f-7945-4442-bfc6-d59253f668cf
HTTP/1.1 200 OK
Content-Length: 59
Content-Type: application/json; charset=utf-8
Date: Wed, 25 Aug 2021 11:28:00 GMT
{"_id":"452fae7f-7945-4442-bfc6-d59253f668cf","name":"Dio"}
curl --include --head \
http://artists.localhost/v1/artists/452fae7f-7945-4442-bfc6-d59253f668cf
HTTP/1.1 204 No Content
Date: Wed, 25 Aug 2021 11:44:00 GMT
curl --include --request PUT \
--header 'Content-Type: application/json' \
--data '{"name": "Ronnie James Dio"}' \
http://artists.localhost/v1/artists/452fae7f-7945-4442-bfc6-d59253f668cf
HTTP/1.1 204 No Content
Date: Tue, 24 Aug 2021 23:23:04 GMT
curl --include --request DELETE \
http://artists.localhost/v1/artists/452fae7f-7945-4442-bfc6-d59253f668cf
HTTP/1.1 204 No Content
Date: Tue, 24 Aug 2021 23:30:14 GMT
curl --include --request POST \
--header 'Content-Type: application/json' \
--data '{"artist": {"_id": "452fae7f-7945-4442-bfc6-d59253f668cf"}, "name": "Holy Diver"}' \
http://albums.localhost/v1/albums
HTTP/1.1 201 Created
Content-Length: 46
Content-Type: application/json; charset=utf-8
Date: Tue, 24 Aug 2021 23:16:44 GMT
{"_id":"452fae7f-7945-4442-bfc6-d59253f668cf"}