Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

###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"
}

About

basic sample how to create rest-api with golang

Topics

Resources

License

Releases

No releases published
You can’t perform that action at this time.