module
Version:
v0.0.0-...-c447797
Opens a new window with list of versions in this module.
Published: Dec 5, 2024
License: GPL-3.0
Opens a new window with license information.
README
¶
Go API Example
This is a simple example of a RESTful API written in Go.
Getting Started
Prerequisites
Installation
- 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.
API Endpoints
GET /receipts/{id}/points - Retrieve the number of points earned for a receipt with the specified ID
POST /receipts/process - Create a new receipt and process points
License
This project is licensed under the GNU GPL v3 License - see the LICENSE file for details.
Acknowledgments
Directories
¶
Click to show internal directories.
Click to hide internal directories.