module
Version:
v0.0.0-...-6070ab4
Opens a new window with list of versions in this module.
Published: Sep 19, 2020
License: MIT
Opens a new window with license information.
README
¶
api-model
{DESCRIPTION OF THE API}
Routes
{API ROUTES WITH BODY AND RESPONSE EXAMPLES}
How to test
{makefile instructions}
Domain
{Description of the domain the api controls}
Model to api
To turn this model into an API you'll have to:
- Edit all the references of:
{apiname} to the name of your api.
- Edit the config files (docker-config.yaml and config.yaml) with the things that your api will need. (optional)
- Change the name of the dir: ./cmd/{apiname} with the name of your api.
- Execute
go mod init github.com/getclasslabs/{apiname}
- Put everything on vendor with:
go mod vendor
- You're ready to go!
Directories
¶
Click to show internal directories.
Click to hide internal directories.