Categorygithub.com/KidiXDev/GoSimpleApi
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

  1. Clone the repository:
    git clone https://github.com/KidiXDev/GoSimpleApi.git
    
  2. Navigate to the project directory:
    cd gosimpleapi
    
  3. Install the dependencies:
    go mod tidy
    

Usage

  1. Start the server:
    go run cmd/main.go
    
  2. 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.

# Packages

No description provided by the author
No description provided by the author