ROUTES FUNCTIONS ENDPOINTS METHODS
[Database] |-->[GET ALL]----[getMovies]---->[/movies]----->[GET]<----|
| | |
X |-->[GET BY ID]--[getMovie]----->[/movies/id]-->[GET]<----|
| | | For Testing
[Movies Server]---->[CREATE]-----[createMovie]-->[/movies]----->[POST]<---|---[POSTMAN]
Localhost: 7171 | |
|-->[UPDATE]-----[updateMovie]-->[/movies/id]-->[PUT]<----|
| |
|-->[DELETE]-----[deleteMovie]-->[/movies/id]-->[DELETE]<-|
git clone https://github.com/Nedick/go-crud-api.git
cd go-crud-api
go build
go run main.go
Open browser and navigate to:
localhost:7171
Using Postman you can play with the endpoints.