cojspcl-api

command module
v0.0.0-...-d66610b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 2 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL