moved tex export request to /pdf sub path

This commit is contained in:
s5260822 2025-03-22 23:01:39 +01:00
parent 76951476ef
commit 85ea3dd5f5
2 changed files with 10 additions and 10 deletions

View file

@ -66,10 +66,10 @@ public class RESTHandler {
app.get("/reden", SpeechController::listAllSpeeches); // zeige alle Reden an (Filtern möglich)
app.get("/export/speech/{id}", SpeechesExportController::exportSpeech); // exportiere eine Rede als PDF
app.get("/export/speaker/{id}", SpeechesExportController::exportSpeechesFromSpeaker); // exportiere alle Reden eines Parlamentariers als PDF
app.get("/export/topic/{topic}", SpeechesExportController::exportSpeechesWithTopic); // exportiere alle Reden zu einem Thema als PDF
app.get("/export/all", SpeechesExportController::exportAllSpeeches); // exportiere alle Reden als PDF CAUTION!!!: This will take forever but is required in the exercise
app.get("/export/speeches/{speechIds}", SpeechesExportController::exportSpeeches); // exportiere eine Liste von Reden als PDF
app.get("/export/pdf/speech/{id}", SpeechesExportController::exportSpeech); // exportiere eine Rede als PDF
app.get("/export/pdf/speaker/{id}", SpeechesExportController::exportSpeechesFromSpeaker); // exportiere alle Reden eines Parlamentariers als PDF
app.get("/export/pdf/topic/{topic}", SpeechesExportController::exportSpeechesWithTopic); // exportiere alle Reden zu einem Thema als PDF
app.get("/export/pdf/all", SpeechesExportController::exportAllSpeeches); // exportiere alle Reden als PDF CAUTION!!!: This will take forever but is required in the exercise
app.get("/export/pdf/speeches/{speechIds}", SpeechesExportController::exportSpeeches); // exportiere eine Liste von Reden als PDF
}
}

View file

@ -19,7 +19,7 @@ public class SpeechesExportController {
summary = "Get a speech as a PDF",
description = "Returns a LaTeX generated pdf of a selected speech",
operationId = "getSpeechExport",
path = "/export/speech/{id}",
path = "/export/pdf/speech/{id}",
methods = HttpMethod.GET,
tags = {"Export", "Speeches", "PDF"},
responses = {
@ -62,7 +62,7 @@ public class SpeechesExportController {
summary = "Get all speeches from a speaker as a PDF",
description = "Returns a LaTeX generated pdf of all speeches of a selected speech",
operationId = "getSpeechesFromSpeakerExport",
path = "/export/speaker/{id}",
path = "/export/pdf/speaker/{id}",
methods = HttpMethod.GET,
tags = {"Export", "Speeches", "PDF"},
responses = {
@ -106,7 +106,7 @@ public class SpeechesExportController {
summary = "Get all speeches as a PDF",
description = "Returns a LaTeX generated pdf of all speeches",
operationId = "getAllSpeeches",
path = "/export/all",
path = "/export/pdf/all",
methods = HttpMethod.GET,
tags = {"Export", "Speeches", "PDF"},
responses = {
@ -150,7 +150,7 @@ public class SpeechesExportController {
summary = "Get all speeches with specific topic as a PDF",
description = "Returns a LaTeX generated pdf of all speeches with specific topic",
operationId = "getAllSpeechesWithTopic",
path = "/export/topic/{topic}",
path = "/export/pdf/topic/{topic}",
methods = HttpMethod.GET,
tags = {"Export", "Speeches", "PDF"},
responses = {
@ -194,7 +194,7 @@ public class SpeechesExportController {
summary = "Get speeches by IDs as a PDF",
description = "Returns a LaTeX-generated PDF of the speeches specified by their IDs",
operationId = "getSpeechesByIds",
path = "/export/speeches/{speechIds}", // Comma-separated IDs
path = "/export/pdf/speeches/{speechIds}", // Comma-separated IDs
methods = HttpMethod.GET,
tags = {"Export", "Speeches", "PDF"},
responses = {