diff --git a/API/Controllers/JobController.cs b/API/Controllers/JobController.cs
index 1ced7e9..2b7e80c 100644
--- a/API/Controllers/JobController.cs
+++ b/API/Controllers/JobController.cs
@@ -87,7 +87,7 @@ public class JobController(PgsqlContext context) : Controller
///
/// ID of Manga
/// How often should we check for new chapters
- /// Created new Job
+ /// Job-IDs
/// Could not find Manga with ID
/// Error during Database Operation
[HttpPut("DownloadAvailableChaptersJob/{MangaId}")]
@@ -107,7 +107,7 @@ public class JobController(PgsqlContext context) : Controller
/// Create a new DownloadSingleChapterJob
///
/// ID of the Chapter
- /// Created new Job
+ /// Job-IDs
/// Could not find Chapter with ID
/// Error during Database Operation
[HttpPut("DownloadSingleChapterJob/{ChapterId}")]
@@ -126,7 +126,7 @@ public class JobController(PgsqlContext context) : Controller
/// Create a new UpdateFilesDownloadedJob
///
/// ID of the Manga
- /// Created new Job
+ /// Job-IDs
/// Could not find Manga with ID
/// Error during Database Operation
[HttpPut("UpdateFilesJob/{MangaId}")]
@@ -144,10 +144,10 @@ public class JobController(PgsqlContext context) : Controller
///
/// Create a new UpdateMetadataJob for all Manga
///
- /// Created new Job
+ /// Job-IDs
/// Error during Database Operation
[HttpPut("UpdateAllFilesJob")]
- [ProducesResponseType(Status201Created)]
+ [ProducesResponseType(Status201Created, "application/json")]
[ProducesResponseType(Status500InternalServerError, "text/plain")]
public IActionResult CreateUpdateAllFilesDownloadedJob()
{
@@ -169,7 +169,7 @@ public class JobController(PgsqlContext context) : Controller
/// Create a new UpdateMetadataJob
///
/// ID of the Manga
- /// Created new Job
+ /// Job-IDs
/// Could not find Manga with ID
/// Error during Database Operation
[HttpPut("UpdateMetadataJob/{MangaId}")]
@@ -187,10 +187,10 @@ public class JobController(PgsqlContext context) : Controller
///
/// Create a new UpdateMetadataJob for all Manga
///
- /// Created new Job
+ /// Job-IDs
/// Error during Database Operation
[HttpPut("UpdateAllMetadataJob")]
- [ProducesResponseType(Status201Created)]
+ [ProducesResponseType(Status201Created, "application/json")]
[ProducesResponseType(Status500InternalServerError, "text/plain")]
public IActionResult CreateUpdateAllMetadataJob()
{
@@ -332,10 +332,11 @@ public class JobController(PgsqlContext context) : Controller
/// Stops the Job with the requested ID
///
/// Job-ID
- /// NOT IMPLEMENTED
+ /// NOT IMPLEMENTED
[HttpPost("{JobId}/Stop")]
+ [ProducesResponseType(Status501NotImplemented)]
public IActionResult StopJob(string JobId)
{
- throw new NotImplementedException();
+ return StatusCode(501);
}
}
\ No newline at end of file
diff --git a/API/Controllers/NotificationConnectorController.cs b/API/Controllers/NotificationConnectorController.cs
index 43797c8..186409a 100644
--- a/API/Controllers/NotificationConnectorController.cs
+++ b/API/Controllers/NotificationConnectorController.cs
@@ -50,11 +50,11 @@ public class NotificationConnectorController(PgsqlContext context) : Controller
///
/// Formatting placeholders: "%title" and "%text" can be placed in url, header-values and body and will be replaced when notifications are sent
/// Notification-Connector
- ///
+ /// ID of new connector
/// A NotificationConnector with name already exists
/// Error during Database Operation
[HttpPut]
- [ProducesResponseType(Status201Created)]
+ [ProducesResponseType(Status201Created, "application/json")]
[ProducesResponseType(Status409Conflict)]
[ProducesResponseType(Status500InternalServerError, "text/plain")]
public IActionResult CreateConnector([FromBody]NotificationConnector notificationConnector)
@@ -65,7 +65,7 @@ public class NotificationConnectorController(PgsqlContext context) : Controller
{
context.NotificationConnectors.Add(notificationConnector);
context.SaveChanges();
- return Created();
+ return Created(notificationConnector.Name, notificationConnector);
}
catch (Exception e)
{
@@ -77,12 +77,12 @@ public class NotificationConnectorController(PgsqlContext context) : Controller
/// Creates a new Gotify-Notification-Connector
///
/// Priority needs to be between 0 and 10
- ///
+ /// ID of new connector
///
/// A NotificationConnector with name already exists
/// Error during Database Operation
[HttpPut("Gotify")]
- [ProducesResponseType(Status201Created)]
+ [ProducesResponseType(Status201Created, "application/json")]
[ProducesResponseType(Status400BadRequest)]
[ProducesResponseType(Status409Conflict)]
[ProducesResponseType(Status500InternalServerError, "text/plain")]
@@ -103,12 +103,12 @@ public class NotificationConnectorController(PgsqlContext context) : Controller
/// Creates a new Ntfy-Notification-Connector
///
/// Priority needs to be between 1 and 5
- ///
+ /// ID of new connector
///
/// A NotificationConnector with name already exists
/// Error during Database Operation
[HttpPut("Ntfy")]
- [ProducesResponseType(Status201Created)]
+ [ProducesResponseType(Status201Created, "application/json")]
[ProducesResponseType(Status400BadRequest)]
[ProducesResponseType(Status409Conflict)]
[ProducesResponseType(Status500InternalServerError, "text/plain")]
@@ -136,12 +136,12 @@ public class NotificationConnectorController(PgsqlContext context) : Controller
/// Creates a new Lunasea-Notification-Connector
///
/// https://docs.lunasea.app/lunasea/notifications/custom-notifications for id. Either device/:device_id or user/:user_id
- ///
+ /// ID of new connector
///
/// A NotificationConnector with name already exists
/// Error during Database Operation
[HttpPut("Lunasea")]
- [ProducesResponseType(Status201Created)]
+ [ProducesResponseType(Status201Created, "application/json")]
[ProducesResponseType(Status400BadRequest)]
[ProducesResponseType(Status409Conflict)]
[ProducesResponseType(Status500InternalServerError, "text/plain")]