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

Open
3 tasks
Tracked by #461
Dedekind561 opened this issue Apr 3, 2024 · 0 comments
Open
3 tasks
Tracked by #461

Get all videos endpoint #463

Dedekind561 opened this issue Apr 3, 2024 · 0 comments

Comments

@Dedekind561
Copy link
Contributor

Dedekind561 commented Apr 3, 2024

Dependencies

This issue depends on #477 and #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.

@Dedekind561 Dedekind561 added the 📅 Week 1 Assigned during Week 1 of this module label Apr 3, 2024
@Dedekind561 Dedekind561 changed the title Implement the /api/videos endpoint Implement the get all videos endpoint Apr 3, 2024
@Dedekind561 Dedekind561 changed the title Implement the get all videos endpoint Get all videos endpoint Apr 3, 2024
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