sample-go-api

command module
v0.0.0-...-c5987b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: MIT Imports: 6 Imported by: 0

README

###sample-go-api

    cd $GOPATH
    
    mkdir -p src/app && cd src/app
    
    git clone git@github.com:andboson/sample-go-api.git .
    
    glide install
    
    go test -v $(glide novendor)
    
    go build -v    

####glide

Glide is golang package manager. It is very similar to Composer (PHP package manager).

You must have Glide. See github glide for howto

Some packages:

Sample docs:

model.find_by_name

Return model api-response

Params:

- `name`  Name of model.

####sample request:

request:

{
	"name": "test-name"
}

response:

{
    "id": 3,
    "article": 1007455,
    "name": "test-name",   			
    "date": "2016-05-22"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL