Closed bee-san closed 1 year ago
docker build .
docker service create userInfo
curl
In particular I tested:
$ curl -X GET http://localhost:8080/api/users/123
We can get user info.
curl -X POST -H "Content-Type: application/json" -d '{"name":"John Doe","email":"john.doe@example.com"}' http://localhost:8080/api/users
The API endpoint properly creates a new user with the provided name "John Doe" and email "john.doe@example.com".
curl -X PUT -H "Content-Type: application/json" -d '{"email":"updated-email@example.com"}' http://localhost:8080/api/users/123
The API endpoint successfully updates the email address of the user with the ID "123" to "updated-email@example.com".
curl -X DELETE http://localhost:8080/api/users/123
The API endpoint correctly deletes the user with the ID "123"
Deployed in staging environment dev-60, when this is merged it will be automatically deployed to prod-19.
dev-60
prod-19
This was an example PR for Bee's blog post. 😅 https://skerritt.blog/writing-better-commit-messages/
Tests
docker build .
in root folderdocker service create userInfo
curl
In particular I tested:
We can get user info.
The API endpoint properly creates a new user with the provided name "John Doe" and email "john.doe@example.com".
The API endpoint successfully updates the email address of the user with the ID "123" to "updated-email@example.com".
The API endpoint correctly deletes the user with the ID "123"
Deployed
Deployed in staging environment
dev-60
, when this is merged it will be automatically deployed toprod-19
.