All of the changes have been completed and the full changeset can be found on this pull request.
The service currently has the following endpoints:
- GET /health
- Basic health check for the service
- Returns 200
- GET /guests
- Returns all guests in the guestbook
- Returns 200
- Returns JSON list of guests
- POST /guests
- Adds a guest to the guestbook
- Request is JSON guest {"name":"Dan", "age":31}
- Returns 201 on creation
- Returns 409 if the guest already exists
- DELETE /guests/<name>
- Deletes a guest by name
- Returns 204 if the guest was deleted
- Returns 404 if the guest to delete was not found
Overall, this is an extremely basic REST service, however it will serve our purposes for the rest of this CI/CD series.
In the following posts, we will start to:
- Add automated unit tests
- Run the service via a Docker image
- Add automated product acceptance tests (PATs)
- Add automated deployments to a cloud service
No comments:
Post a Comment