Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/satzrp/go-sample-rest-api

Simple REST API using GO
https://github.com/satzrp/go-sample-rest-api

go golang rest-api

Last synced: 6 days ago
JSON representation

Simple REST API using GO

Awesome Lists containing this project

README

        

# Simple REST API using GO

This is a simple REST API implementation using [Go](https://golang.org) programming langauge.

## Packages Used

* gorilla/mux - for routing
* gopkg.in/mgo.v2 - for accessing mongodb database

## Endpoints

Base URL: localhost:8080

* GET /movies - To get all the movies from database
* GET /movies/{id} - To get movie by id
* POST /movies - To insert new movie
* PUT /movies - To update an existing movie
* DELETE /movies - To delete a movie