kushalshit27 / go-rest-api

Go programming rest API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card

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

  1. Clone the repo
    git clone https://github.com/kushalshit27/go-rest-api.git
  2. 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.

About

Go programming rest API

License:MIT License


Languages

Language:Go 94.0%Language:PLpgSQL 6.0%