go-rest-api

command module
v0.0.0-...-c7d2bbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 12 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL