You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
911 B
Markdown

# pulley
![build-status](https://drone.runcible.io/api/badges/learning/pulley/status.svg)
A Golang HTTP API
## Routes
Uses [CleanURLs](https://en.wikipedia.org/wiki/Clean_URL)
| 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 | editMovieHandler | Update the details of a specific movie |
| DELETE | /v1/movies/:id | deleteMovieHandler | Delete a specific movie |