Monday, June 1, 2020

Base Application - CI/CD Series

As discussed in the introduction, we are working on a basic REST service with the goal of implementing full end-to-end CI/CD. To help build this REST service, we are leveraging:
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:
  1. Add automated unit tests
  2. Run the service via a Docker image
  3. Add automated product acceptance tests (PATs)
  4. Add automated deployments to a cloud service

No comments:

Post a Comment