# README
Golang Authorization API
This project provides a RESTful API for managing authorization in a Golang application.
Features
- Authentication using JWT tokens
- CRUD operations for copyright data
- Integration with Cloudflare for protection
Installation
- Clone the repository:
git clone https://github.com/farismnrr/golang-authorization-api.git
- Navigate to the project directory:
cd golang-authorization-api
- Install dependencies:
go mod tidy
- Create a
.env
file andAuthorization.json
file. - Run the application:
go run main.go
Usage
Endpoints
GET /
: Returns server information.GET /api/{apiVersion}/get-key
: Retrieves the private key for authorization using middleware.GET /api/{apiVersion}/copyrights
: Retrieves copyright.POST /api/{apiVersion}/copyrights
: Adds new copyright.PUT /api/{apiVersion}/copyrights
: Updates existing copyright.DELETE /api/{apiVersion}/copyrights
: Removes copyright.
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
No description provided by the author
No description provided by the author
No description provided by the author