diff options
| author | crobibero <cody@robibe.ro> | 2020-07-31 10:17:01 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-07-31 10:17:01 -0600 |
| commit | 32c0ac96a14bcc42e57f9583d71dd65c804bb577 (patch) | |
| tree | 01e5b3ab5aeef31add05a6957255b4a5bdfa6c25 | |
| parent | 6051df0c47876cd30ea0f39f8ef6ed1f54740a67 (diff) | |
fix route params
| -rw-r--r-- | Jellyfin.Api/Controllers/DlnaController.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Jellyfin.Api/Controllers/DlnaController.cs b/Jellyfin.Api/Controllers/DlnaController.cs index dcd31a48b..397299a73 100644 --- a/Jellyfin.Api/Controllers/DlnaController.cs +++ b/Jellyfin.Api/Controllers/DlnaController.cs @@ -52,16 +52,16 @@ namespace Jellyfin.Api.Controllers /// <summary> /// Gets a single profile. /// </summary> - /// <param name="id">Profile Id.</param> + /// <param name="profileId">Profile Id.</param> /// <response code="200">Device profile returned.</response> /// <response code="404">Device profile not found.</response> /// <returns>An <see cref="OkResult"/> containing the profile on success, or a <see cref="NotFoundResult"/> if device profile not found.</returns> - [HttpGet("Profiles/{Id}")] + [HttpGet("Profiles/{profileId}")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] - public ActionResult<DeviceProfile> GetProfile([FromRoute] string id) + public ActionResult<DeviceProfile> GetProfile([FromRoute] string profileId) { - var profile = _dlnaManager.GetProfile(id); + var profile = _dlnaManager.GetProfile(profileId); if (profile == null) { return NotFound(); @@ -73,22 +73,22 @@ namespace Jellyfin.Api.Controllers /// <summary> /// Deletes a profile. /// </summary> - /// <param name="id">Profile id.</param> + /// <param name="profileId">Profile id.</param> /// <response code="204">Device profile deleted.</response> /// <response code="404">Device profile not found.</response> /// <returns>A <see cref="NoContentResult"/> on success, or a <see cref="NotFoundResult"/> if profile not found.</returns> - [HttpDelete("Profiles/{Id}")] + [HttpDelete("Profiles/{profileId}")] [ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status404NotFound)] - public ActionResult DeleteProfile([FromRoute] string id) + public ActionResult DeleteProfile([FromRoute] string profileId) { - var existingDeviceProfile = _dlnaManager.GetProfile(id); + var existingDeviceProfile = _dlnaManager.GetProfile(profileId); if (existingDeviceProfile == null) { return NotFound(); } - _dlnaManager.DeleteProfile(id); + _dlnaManager.DeleteProfile(profileId); return NoContent(); } @@ -109,17 +109,17 @@ namespace Jellyfin.Api.Controllers /// <summary> /// Updates a profile. /// </summary> - /// <param name="id">Profile id.</param> + /// <param name="profileId">Profile id.</param> /// <param name="deviceProfile">Device profile.</param> /// <response code="204">Device profile updated.</response> /// <response code="404">Device profile not found.</response> /// <returns>A <see cref="NoContentResult"/> on success, or a <see cref="NotFoundResult"/> if profile not found.</returns> - [HttpPost("Profiles/{Id}")] + [HttpPost("Profiles/{profileId}")] [ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status404NotFound)] - public ActionResult UpdateProfile([FromRoute] string id, [FromBody] DeviceProfile deviceProfile) + public ActionResult UpdateProfile([FromRoute] string profileId, [FromBody] DeviceProfile deviceProfile) { - var existingDeviceProfile = _dlnaManager.GetProfile(id); + var existingDeviceProfile = _dlnaManager.GetProfile(profileId); if (existingDeviceProfile == null) { return NotFound(); |
