module
0.0.0-20241113041129-a9cf18a0a6d4
Repository: https://github.com/kidixdev/gosimpleapi.git
Documentation: pkg.go.dev
# README
Simple API
This project is a simple API built with Go. It provides endpoints to manage user coin balances and authentication.
Table of Contents
Installation
- Clone the repository:
git clone https://github.com/KidiXDev/GoSimpleApi.git
- Navigate to the project directory:
cd gosimpleapi
- Install the dependencies:
go mod tidy
Usage
- Start the server:
go run cmd/main.go
- The server will start on
localhost:8000
.
Endpoints
Get Coin Balance
- URL:
/account/coins
- Method:
GET
- Headers:
Authorization: <AuthToken>
- Query Parameters:
username: <Username>
- Response:
{ "Code": 200, "Balance": 100 }
License
This project is licensed under the MIT License. See the LICENSE file for details.