/simple-go-api

simple rest api using standard go library. Used for studying

Primary LanguageGoMIT LicenseMIT

Go Report Card

Simple go http rest api

Requirements

  • golang v1.11
  • notify-tools: for inotifywait

How to run

  • add project directory to GOPATH: export GOPATH=$GOPATH:$PWD
  • ./reload.sh ./server # nodemon like server
  • go install server # builds server binaries on ./bin folder

Use the server

  • curl -X POST localhost:8080/hello -d '{"name": "JP"}'