From 9f754210626b99a5be90e924e71a51e60d4e6e04 Mon Sep 17 00:00:00 2001 From: MitchLloyd Date: Wed, 21 Feb 2024 15:47:54 -0500 Subject: [PATCH] Add resource name in required endpoints (#196) * Add resource name in required endpoints * refer to videos endpoint earlier in readme --------- Co-authored-by: Dedekind561 --- 200.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/200.md b/200.md index 379d220bd8..914f7e5699 100644 --- a/200.md +++ b/200.md @@ -9,12 +9,10 @@ Below are separate headings for each endpoint. Each of them are separated into t For a recap on about HTTP Request Methods you can read here https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods -For example, for the first endpoint +For example, the first endpoint is: - `GET` is the request method -- "/" is the route - -On Line 8 of `server.js` you can find an example of the first endpoint that you will need to make. +- "/videos" is the route ## Project @@ -53,7 +51,7 @@ https://video-rec.herokuapp.com Your website should have the following four endpoints. -### `GET` "/" +### `GET` "/videos" This endpoint is used to return all of the videos @@ -61,7 +59,7 @@ This endpoint is used to return all of the videos See `exampleresponse.json` -### `POST` "/" +### `POST` "/videos" This endpoint is used to add a video to the API. @@ -97,7 +95,7 @@ If not successful } ``` -### `GET` "/{id}" +### `GET` "/videos/{id}" Returns the video with the ID contained within the `{id}` parameter @@ -112,7 +110,7 @@ Returns the video with the ID contained within the `{id}` parameter } ``` -### `DELETE` "/{id}" +### `DELETE` "/videos/{id}" Deletes the video with the ID container within the `{id}` parameter