From 694f7fe4ee306cc424a23efac588dbd5269b29e7 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sat, 15 Mar 2025 09:18:38 -0400 Subject: [PATCH] Adding markdown table --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59013a3..a11aee3 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,18 @@ ![build-status](https://drone.runcible.io/api/badges/learning/pulley/status.svg) -A Golang HTTP API \ No newline at end of file +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 | \ No newline at end of file