command
module
Version:
v0.0.0-...-d66610b
Opens a new window with list of versions in this module.
Published: Aug 18, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Coj Specialist API
Golang v.1.14
Install:
git clone https://github.com/judascrow/cojspcl-api.git
cp .env.example .env
Features
- RESTful API
- Gin
- Gorm
- Gin-Swagger
- Log-Zap
- Gin-Jwt
- Casbin
COMMAND
Migrate & Seed :
go run main.go create seed
Run :
go run main.go
API ROUTER URI
Host: localhost:8000
Base Path: /api/v1
Healthcheck
Done |
Method |
URI |
authorize |
comment |
✅ |
GET |
/healthcheck |
No |
Check Status Service |
Auth
Done |
Method |
URI |
authorize |
comment |
✅ |
POST |
/auth/login |
No |
Log in |
✅ |
POST |
/auth/register |
No |
Register |
✅ |
GET |
/auth/me |
Yes |
Me User |
User
Done |
Method |
URI |
authorize |
comment |
✅ |
GET |
/users |
Yes |
List Users |
✅ |
GET |
/users/:slug |
Yes |
Get User by Slug |
✅ |
POST |
/users |
Yes |
Create User |
✅ |
PUT |
/users/:slug |
Yes |
Update User |
✅ |
DELETE |
/users/:slug |
Yes |
Delete User |
✅ |
POST |
/users/:slug/password |
Yes |
Change Password |
✅ |
POST |
/users/:slug/avatar |
Yes |
Upload Avatar |
Role
Done |
Method |
URI |
authorize |
comment |
✅ |
GET |
/roles |
Yes |
List Roles |
Swaggo
Generate command: swag init
URL: http://localhost:8000/api/v1/swagger/index.html
File Server
URL: http://localhost:8000/upload
FOR DEV
GIT
Update
./git.sh "COMMENT"
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.