Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resource name in required endpoints #196

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
SallyMcGrath marked this conversation as resolved.
Show resolved Hide resolved

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
Loading