mbilgil / go-rest-api-tutorial

Rest Api Tutorial with Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple GO Lang REST API

Simple RESTful API to create, read, update and delete. No database implementation yet

Quick Start

# Install mux router
go get -u github.com/gorilla/mux
go build
./go-rest-api-tutorial

Endpoints

Get All Person

GET /people

Get Single Person

GET /people/{id}

Delete Person

DELETE /people/{id}

Create People

POST /people

 Request sample
# {
#   "firstname":"John",
#   "lastname":"Doe",
#   "address":{"city":"London",  "state":"EN"}
# }

Get University By Country Name

GET /university
 Request sample
# Request Param add :
# country = turkey

About

Rest Api Tutorial with Go

License:MIT License


Languages

Language:Go 100.0%