Skip to content

onokonem/go-testrest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-testrest

Prerequisities

Go version

1.6+

go-swagger:

go get -u github.com/go-swagger/go-swagger/cmd/swagger

reform

go get -u gopkg.in/reform.v1/reform

database

MySQL support implemented, scheme is in scheme.mysql.sql file

Get the app

go get -u github.com/onokonem/go-testrest/cmd/testrest

re-generate the swagger files

run the following command in proto subdir

swagger generate server

It is betted to cleanup proto/cmd proto/models proto/restapi dirs before.

Config file example:

host: 0.0.0.0
port: 8080
db:
  driver: mysql
  dsn:    root@/testrest/

API doc

swagger serve proto/swagger.yml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published