- Simple api server with golang
- Using fiber webframework
- Referring layered architecture
# go to deploy directory
cd deploy
# build api-server
docker-compose build
# run api-server with mysql
docker-compose up
- Method: POST
- Uri: /join
- Request Body
- {"nickname": "[NICKNAME]"}
- Resonse Body
- {"ResultCode": 0, "Response": {"Id": [LAST_INSERT_ID]}}
- Method: POST
- Uri: /login
- Request Body
- {"nickname": "[NICKNAME]"}
- Resonse Body
- {"ResultCode": 0, "Response": {"Id": [ACCOUNT_ID]}}