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 #26

Open
3 tasks
sairaheta1 opened this issue Jul 17, 2024 · 0 comments
Open
3 tasks

Get all videos endpoint #26

sairaheta1 opened this issue Jul 17, 2024 · 0 comments

Comments

@sairaheta1
Copy link
Member

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
Status: 📋 Backlog
Development

No branches or pull requests

1 participant