Skip to content

zaunist/go-zero-devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-zero-devops

deploy with docker-compose

cd deploy && docker compose up -d

API example

Default Response

{
  "ok": true,
  "error": ""
}

Login

  • Api: /login
  • Method: POST
  • RequestBody:
{
  "username": "",
  "password": ""
}

Add user

  • Api: /users
  • Method: POST
  • RequestBody:
{
  "username": "",
  "password": ""
}

Delete user

  • Api: /users/id/:id
  • Method: DELETE

Update user

  • Api: /users/id/:id
  • Method: PUT
{
  "username": "",
  "password": ""
}

Get user

  • Api: /users/id/:id
  • Method: GET
  • Response:
{
  "id": 0,
  "username": "",
  "password": ""
  }

Get all user

  • Api: /users
  • Method: GET
  • Response:
[
{
  "id": 0,
  "username": "",
  "password": ""
  }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published