Skip to content

taiki1288/Go-CleanArchitecture-APIServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-CleanArchitecture-APIServer

Go(Echo)×GORM×CleanArchitectureでAPIServerを作成。

language

Architecture

CleanArchitecture

Startup

$ git@github.com:taiki1288/Go-CleanArchitecture-APIServer.git
$ cd Go-CleanArchitecture-APIServer
$ docker-compose up -d
$ go run server.go

Routing

POST

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id": 1, "name": "test", "email": "test@example.com", "age": 20}' localhost:1323/users

GET

$ curl -i -H 'Content-Type:application/json' localhost:1323/users

GET

$ curl -i -H 'Content-Type:application/json' localhost:1323/users/1

PUT

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d '{"id": 1, "name": "testtest", "email": "test2@example.com", "age": 21}' localhost:1323/users/1

DELETE

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X DELETE localhost:1323/users/1

About

Go(Echo)×GORM×CleanArchitecture APIServer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors