This is a simple RESTful API that allows you to interact with a collection of quotes stored in MongoDB.
- Get all quotes
- Get a quote by ID
- Create a new quote
- Update a quote
- Delete a quote
The API server has two main routes:
/quotes
: This route is used to get all quotes or create a new quote./quotes/{id}
: This route is used to get, update, or delete a quote by its ID.
To run the project, you will need Go and MongoDB installed on your system. Here are the steps to run the project:
- Clone the repository:
git clone https://github.com/literalog/quotes.git
- Run the project:
go run main.go