-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(webapi): Remove old UpdateDialog Swagger config (#1470)
- **Chores** - Removed outdated methods related to request example bodies in Swagger documentation.
- Loading branch information
Showing
5 changed files
with
29 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...alogporten.WebApi/Endpoints/V1/ServiceOwner/Dialogs/Update/UpdateDialogEndpointSummary.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Digdir.Domain.Dialogporten.WebApi.Common; | ||
using Digdir.Domain.Dialogporten.WebApi.Common.Authorization; | ||
using Digdir.Domain.Dialogporten.WebApi.Common.Extensions; | ||
using FastEndpoints; | ||
|
||
namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.ServiceOwner.Dialogs.Update; | ||
|
||
public sealed class UpdateDialogEndpointSummary : Summary<UpdateDialogEndpoint> | ||
{ | ||
public UpdateDialogEndpointSummary() | ||
{ | ||
Summary = "Replaces a dialog"; | ||
Description = $""" | ||
Replaces a given dialog with the supplied model. For more information see the documentation (link TBD). | ||
{Constants.SwaggerSummary.OptimisticConcurrencyNote} | ||
"""; | ||
Responses[StatusCodes.Status204NoContent] = Constants.SwaggerSummary.Updated.FormatInvariant("aggregate"); | ||
Responses[StatusCodes.Status400BadRequest] = Constants.SwaggerSummary.ValidationError; | ||
Responses[StatusCodes.Status401Unauthorized] = | ||
Constants.SwaggerSummary.ServiceOwnerAuthenticationFailure.FormatInvariant(AuthorizationScope | ||
.ServiceProvider); | ||
Responses[StatusCodes.Status403Forbidden] = | ||
Constants.SwaggerSummary.AccessDeniedToDialog.FormatInvariant("update"); | ||
Responses[StatusCodes.Status404NotFound] = Constants.SwaggerSummary.DialogNotFound; | ||
Responses[StatusCodes.Status412PreconditionFailed] = Constants.SwaggerSummary.RevisionMismatch; | ||
Responses[StatusCodes.Status422UnprocessableEntity] = Constants.SwaggerSummary.DomainError; | ||
} | ||
} |
195 changes: 0 additions & 195 deletions
195
...Dialogporten.WebApi/Endpoints/V1/ServiceOwner/Dialogs/Update/UpdateDialogSwaggerConfig.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.