Delete videos endpoint
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript
Rechercherichtung
Beginne damit, die vorhandenen Video-API-Routen und den Datenbankzugriff für /api/videos/{id} zu finden. Implementiere und verifiziere die Löschung für eine vorhandene ID, eine geeignete Antwort für eine nicht vorhandene ID und entweder einen Bestätigungs-Body oder HTTP 204; führe alle verfügbaren API-Tests aus, die Video-Endpunkte abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
HTTP Method: DELETE
Route: /api/videos/{id}
This endpoint is used to delete a specific video from the database. DELETE endpoints don't require a request body, and they don't even need to return a response body! While you can return a confirmation message: however, if you don't want to, you can use the HTTP status code 204 to tell the client that the action was successful, but there is no response body.
To make the endpoint nicer, you can also change it so if you try to call this endpoint on an id that doesn't exist, the system may respond with a HTTP 404 status code designating that the video did not exist in the first place or was already deleted.
Acceptance Criteria
- A
DELETE /api/videos/{id}backend endpoint is implemented to remove specific videos. - The endpoint handles non-existent video IDs gracefully, returning an appropriate HTTP status code (e.g.,
404). - The endpoint returns a confirmation message or uses an HTTP status code
204to indicate successful deletion.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 9
- Forks
- 352
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CodeYourFuture/Full-Stack-Project-Assessment
-
:framed_picture: Frontend :rocket: Deployment 📅 Week 1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
-
🏕 Priority Mandatory 📅 Week 2 🦑 Size Large 🧩 Feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
-
Embed videosOffen🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 45/100
-
Setup e2e testsOffen:framed_picture: Frontend ⚙️ Setup 🏝️ Priority Stretch 📅 Week 4 🔌 Backend 🧩 Feature
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
-
:framed_picture: Frontend 🏕 Priority Mandatory 📅 Week 4 🔌 Backend 🧩 Feature
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
Alle Issues in CodeYourFuture/Full-Stack-Project-Assessment
Ähnliche Issues
-
macOS
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
beyondcode/herd-community#1761 ·
-
Make a dry lesson funOffencontent good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
vieanderes/understory#19 ·
-
automated issue report
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
lirantal/discoprint#37 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
tauri-apps/tauri#16219 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[aw] Upgrade availableOffenagentic-workflows
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
githubnext/gh-aw-cao#16599 ·
Maintainer antworten meist innerhalb von 1 Tag