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

Get all videos endpoint #9

Open
3 tasks
RbAvci opened this issue May 4, 2024 · 0 comments
Open
3 tasks

Get all videos endpoint #9

RbAvci opened this issue May 4, 2024 · 0 comments

Comments

@RbAvci
Copy link
Owner

RbAvci commented May 4, 2024

From Full-Stack-Project-Assessment created by Dedekind561: CodeYourFuture#463

Dependencies

This issue depends on CodeYourFuture#477 and CodeYourFuture#476 completing first

Context

For this level, you need to design an endpoint that will list all videos. Endpoint designs are usually separated into the HTTP Request Method type and the route that the endpoint should exist on. For a recap on HTTP Request Methods you can read this guide here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

Endpoint Definition

HTTP Method: GET
Route: /api/videos

Acceptance criteria

  • The endpoint successfully connects to the configured database
  • The endpoint fetches and responds with all video records from the database
  • The endpoint returns a status code of 200

Example

Check https://lvl199--cyf-fsa-solution.netlify.app/api/videos for an example implementation of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants