help with the start commands apiServer start -h or apiServer start --help
start the API server on the given port (def: 8080) apiServer start --port=8080
start the API server with no auth required flag (def: auth required): apiServer start --auth=false
Set Environment variables for Basic Authentication
export username=sakibexport password=12345
Data Model
package model
type Movie struct {
ID string `json:"id"`
Title string `json:"title"`
Genre string `json:"genre"`
Rating int `json:"rating"`
}
package model
type User struct {
ID string `json:"id"`
FirstName string `json:"firstname"`
LastName string `json:"lastname"`
FavouriteMovies []Movie `json:"favouriteMovies"`
}