Skip to content

widnyana/madara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Rest API using GIN Framework

a tiny example REST API using Gin Framework, highly influenced by this repo

How to use

setup your base golang workspace, export your GOPATH, then execute:

go get github.com/widnyana/madara

create main.go and add following code:

package main

import (
    "github.com/widnyana/madara"
    _ "github.com/widnyana/madara/endpoint/users"
)

func main() {
    app := madara.New()
    app.Router.Run("127.0.0.1:8080")
}

run it with go run main.go

if no error, your api is live in 127.0.0.1:8080/users

Thanks

License

provided as-is, for educational purpose, responsibility held by the users

see LICENSE

About

an example of REST API using gin framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages