Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.11 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.11 KB

###sample-go-api

    cd $GOPATH
    
    mkdir -p src/app && cd src/app
    
    git clone [email protected]: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"
}