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
.
Run the server
$ go run .