This repo is other version of my previous golang movie rest API: https://github.com/muhrahmatullah/go_movie
TODO : use database instead of List
clone the repository and open it in your preffered IDE (recommended using intellij)
run the app
check the log and it will show the url with the port
ex: [main] INFO Application - Responding at http://0.0.0.0:8080
GET movies
GET movie/{id}
DELETE movie/{id}
POST movie/
# Request sample
{
"title": "Mari Pulang",
"rating": "5.6",
"year": 2019,
"actors": [{
"name": "Rahmatullah",
"age": 22
}]
}
PUT movies/{id}
# Request sample
{
"title": "Mari Pulang Bersama",
"rating": "5.6",
"year": 2019,
"actors": [{
"name": "Rahmatullah aka matx",
"age": 22
}]
}
Muh Rahmatullah