https://github.com/munkhorgil/gomovierest
For those who wants to learn the Go language simple rest
https://github.com/munkhorgil/gomovierest
go golang golanguage movie rest rest-api
Last synced: 5 months ago
JSON representation
For those who wants to learn the Go language simple rest
- Host: GitHub
- URL: https://github.com/munkhorgil/gomovierest
- Owner: munkhorgil
- Created: 2019-10-28T16:38:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-28T16:46:43.000Z (over 6 years ago)
- Last Synced: 2024-06-19T04:18:33.833Z (about 2 years ago)
- Topics: go, golang, golanguage, movie, rest, rest-api
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoMovie Rest 🎥
For those who wants to learn the Go language simple rest
1. git clone project
2. go run main.go
```
get: http://localhost:8080/api/movies
get: http://localhost:8080/api/movies/1
post: http://localhost:8080/api/movies
```
To add movie to json send post request to above url with following body
```
{
"name": "Joker",
"release": " 4 October 2019",
"director": {
"firstname": "Todd",
"lastname": "Phillips"
}
}
```