Changed "Key" to "Id" in management API (#14045)

This commit is contained in:
Bjarke Berg
2023-04-04 13:20:29 +02:00
committed by GitHub
parent c8f4ae2e29
commit 6313b8b3a1
144 changed files with 503 additions and 503 deletions

View File

@@ -26,14 +26,14 @@ public class UpdateDictionaryController : DictionaryControllerBase
_dictionaryPresentationFactory = dictionaryPresentationFactory;
}
[HttpPut($"{{{nameof(key)}:guid}}")]
[HttpPut($"{{{nameof(id)}:guid}}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
public async Task<IActionResult> Update(Guid key, UpdateDictionaryItemRequestModel updateDictionaryItemRequestModel)
public async Task<IActionResult> Update(Guid id, UpdateDictionaryItemRequestModel updateDictionaryItemRequestModel)
{
IDictionaryItem? current = await _dictionaryItemService.GetAsync(key);
IDictionaryItem? current = await _dictionaryItemService.GetAsync(id);
if (current == null)
{
return NotFound();