Skip to content

muhrahmatullah/go_movie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A very Simple GO Lang REST API

TODO : use database instead of slice

Quick Start

# Install mux router
go get -u github.com/gorilla/mux
go build
./Main

Endpoints

Get All Movies

GET movies

Get Single Movie

GET movies/{id}

Delete Movie

DELETE movies/{id}

Create Movie

POST movies/

# Request sample
{
	"title": "Mari Pulang",
	"rating": "5.6",
	"year": 2019,
	"actor": {
		"name": "Rahmatullah",
		"age": 22
	}
}

Update Movie

PUT movies/{id}

# Request sample
{
	"title": "Mari Pulang Bersama",
	"rating": "5.6",
	"year": 2019,
	"actor": {
		"name": "Rahmatullah aka matx",
		"age": 22
	}
}

Author

Muh Rahmatullah

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages