Skip to content

natae/golang_APIServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

golang_APIServer

Overview

  • Simple api server with golang
  • Using fiber webframework
  • Referring layered architecture

How to run

# go to deploy directory
cd deploy

# build api-server
docker-compose build

# run api-server with mysql
docker-compose up

API Specification

Join

  • Method: POST
  • Uri: /join
  • Request Body
    • {"nickname": "[NICKNAME]"}
  • Resonse Body
    • {"ResultCode": 0, "Response": {"Id": [LAST_INSERT_ID]}}

Login

  • Method: POST
  • Uri: /login
  • Request Body
    • {"nickname": "[NICKNAME]"}
  • Resonse Body
    • {"ResultCode": 0, "Response": {"Id": [ACCOUNT_ID]}}

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published