This is a simple example of a RESTful API written in Go.
- Docker
- Git
- Clone the repository:
git clone https://github.com/yourusername/go-api-example.git
- Navigate to the project directory:
cd go-api-example
- Set file permissions:
sudo groupadd -g 1009 go-api sudo chgrp -R go-api ./ sudo chmod g+w -R ./
- Install dependencies:
docker compose up -d
The server will start on http://localhost:8080
.
GET /receipts/{id}/points
- Retrieve the number of points earned for a receipt with the specified IDPOST /receipts/process
- Create a new receipt and process points
This project is licensed under the GNU GPL v3 License - see the LICENSE file for details.
- Gin Gonic - HTTP web framework for Go