/go-rest-api-tutorial

Rest Api Tutorial with Go

Primary LanguageGoMIT LicenseMIT

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