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: about 1 month ago
JSON representation
Simple REST API using GO
- Host: GitHub
- URL: https://github.com/satzrp/go-sample-rest-api
- Owner: satzrp
- Created: 2018-01-13T12:28:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T20:05:39.000Z (over 5 years ago)
- Last Synced: 2025-02-27T00:17:15.099Z (over 1 year ago)
- Topics: go, golang, rest-api
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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