A RESTful API example for simple post manage application with Go
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/kushalshit27/go-rest-api.git
- Configuration
configure .env
# Build and Run
cd go-rest-api
go mod download
go build
./go-rest-api
# API Endpoint : API running on: http://127.0.0.1:8080
GET
: Get all postsPOST
: Create a new posts
GET
: Get a postPUT
: Update a postDELETE
: Delete a post
See the open issues for a list of proposed features (and known issues).
Distributed under the MIT License. See LICENSE
for more information.