Step Running :
- clone this repo with git
- Open with code editor
- run in terminal go run main.go or using air (live reload)
- open http://localhost:3000/healthcheck in your browser
- if you see "{"data":"Server is up and running"}" so go api running successfully
Documentation :
- Swagger Doc can be accessed using : http://localhost:3000/swagger/index.html
Api Contains :
- Healcheck : http://localhost:3000/healthcheck (mostly used for Docker)
- Login : http://localhost:3000/api/login
Param Body:
- Username
- Password
- Username
- Register : http://localhost:3000/api/register
Param Body :
- Name
- Username
- Password
- Name
- RefreshToken : http://localhost:3000/api/refresh-token
Header Authorize replace token with refresh token for generate new token - User : http://localhost:3000/api/users
- User : http://localhost:3000/api/user/{id}
Path Variable {id}
Default User :
- Admin :
username : admin
password : admin
- User :
username : user
password : user