Skip to content

This project demonstrates a simple RESTful API built with Go and Chi.

Notifications You must be signed in to change notification settings

newline-sandbox/go-chi-restful-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go and chi RESTful API

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!" message
  • GET /posts - Retrieve a list of posts.
  • POST /posts - Creates a post.
  • GET /posts/{id} - Retrieve a single post identified by its id.
  • PUT /posts/{id} - Update a single post identified by its id.
  • DELETE /posts/{id} - Delete a single post identified by its id.

Get Started

Install the dependencies...

$ make install_deps

...then run the service:

$ make run_service

Running the API

Feel free to clone this project and add more endpoints!

About

This project demonstrates a simple RESTful API built with Go and Chi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages