/restgomysql

REST APIs with Go and MySql

Primary LanguageGo

#REST API in Golang with mySql Database

Install go lang

Installation

    git clone https://github.com/motyar/restgomysql
    cd restgomysql
    go run server.go

And open http://IP_or_localhost:1234/api

Nothing but (cute) Pandas

GET /api/ to get all the pandas.

POST /api/ to add new panda {name}

DELETE /api/panda_id to remove that one panda.

PUT /api/ to update details {id and name}