Greenlight is a JSON API for retrieving and managing movie information. Similar to Open Movie Database API.
Method | URL Pattern | Handler | Action |
---|---|---|---|
GET | /v1/healthcheck | healthcheckHandler | Show application information |
GET | /v1/movies | listMoviesHandler | Show the details of all movies |
POST | /v1/movies | createMovieHandler | Create a new movie |
GET | /v1/movies/:id | showMovieHandler | Show the details of a specific movie |
PUT | /v1/movies/:id | updateMovieHandler | Update the details of a specific movie |
DELETE | /v1/movies/:id | deleteMovieHandler | Delete a specific movie |
POST | /v1/users | registerUserHandler | Register a new user |
PUT | /v1/users/activated | activateUserHandler | Activate a specific user |
POST | /v1/tokens/authentication | createAuthenticationTokenHandler | Generate a new authentication token |
Server: Go, httprouter