REST API with Golang
A RESTful API example for simple post manage application with Go
Getting Started
To get a local copy up and running follow these simple steps.
Installation
- Clone the repo
git clone https://github.com/kushalshit27/go-rest-api.git
- Configuration
configure .env
Build and Run
# 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
API
/api/posts
GET
: Get all posts
POST
: Create a new posts
/api/posts/:id
GET
: Get a post
PUT
: Update a post
DELETE
: Delete a post
Roadmap
See the open issues for a list of proposed features (and known issues).
License
Distributed under the MIT License. See LICENSE
for more information.