Skip to content

judascrow/coj-specialist-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Coj Specialist API by Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published