Skip to content

Commit

Permalink
Add resource name in required endpoints (#196)
Browse files Browse the repository at this point in the history
* Add resource name in required endpoints

* refer to videos endpoint earlier in readme

---------

Co-authored-by: Dedekind561 <[email protected]>
  • Loading branch information
Dedekind561 and Dedekind561 authored Feb 21, 2024
1 parent ce4398f commit 9f75421
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions 200.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -53,15 +51,15 @@ 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

#### Example Response

See `exampleresponse.json`

### `POST` "/"
### `POST` "/videos"

This endpoint is used to add a video to the API.

Expand Down Expand Up @@ -97,7 +95,7 @@ If not successful
}
```

### `GET` "/{id}"
### `GET` "/videos/{id}"

Returns the video with the ID contained within the `{id}` parameter

Expand All @@ -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

Expand Down

0 comments on commit 9f75421

Please sign in to comment.