Skip to content

Commit

Permalink
[ODS-6055] Align the swagger description for descriptor PUT (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
simpat-adam authored Nov 2, 2023
1 parent db31f8f commit 6f9846d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ private Operation CreatePutByIdOperation(OpenApiMetadataPathsResource openApiMet

private string GetDescription(OpenApiMetadataPathsResource openApiMetadataResource)
{
return openApiMetadataResource.Resource.Entity.Identifier.IsUpdatable
|| openApiMetadataResource.Resource.Entity.IsDescriptorEntity
return openApiMetadataResource.Resource.Entity.Identifier.IsUpdatable
? "The PUT operation is used to update a resource by identifier. If the resource identifier (\"id\") is provided in the JSON body, it will be ignored. Additionally, if natural key values are being updated by the JSON body, those changes will be applied to the resource and will also cascade through to dependent resources."
: "The PUT operation is used to update a resource by identifier. If the resource identifier (\"id\") is provided in the JSON body, it will be ignored. Additionally, this API resource is not configured for cascading natural key updates. Natural key values for this resource cannot be changed using PUT operation, so the recommendation is to use POST as that supports upsert behavior.";
}
Expand Down

0 comments on commit 6f9846d

Please sign in to comment.