This project demonstrates a simple RESTful API built with Go and chi. This API provides the following endpoints:
GET /- Verify whether or not the service is up and running ("health check"). Returns the "Hello World!" messageGET /posts- Retrieve a list of posts.POST /posts- Creates a post.GET /posts/{id}- Retrieve a single post identified by itsid.PUT /posts/{id}- Update a single post identified by itsid.DELETE /posts/{id}- Delete a single post identified by itsid.
Install the dependencies...
$ make install_deps...then run the service:
$ make run_serviceFeel free to clone this project and add more endpoints!
