Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#225 Add request body content to API operations #226

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

richard-einfinity
Copy link
Contributor

Updated ProcessController in DatasyncDocumentFilter.cs to call AddRequestWithContent for OpType.Create and OpType.Replace. Added AddRequestWithContent method in DatasyncOperationExtensions.cs to modify OpenApiOperation with a request body schema. Updated swagger.json to include requestBody sections specifying application/json content type and appropriate schemas.

Updated `ProcessController` in `DatasyncDocumentFilter.cs` to call `AddRequestWithContent` for `OpType.Create` and `OpType.Replace`. Added `AddRequestWithContent` method in `DatasyncOperationExtensions.cs` to modify `OpenApiOperation` with a request body schema. Updated `swagger.json` to include `requestBody` sections specifying `application/json` content type and appropriate schemas.
@adrianhall adrianhall requested a review from Copilot January 27, 2025 21:57
@adrianhall adrianhall added this to the 9.0.0 milestone Jan 28, 2025
@adrianhall adrianhall merged commit d41bcd9 into CommunityToolkit:main Jan 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Model Definition to Post and Put methods for Swashbuckle Swagger generation
2 participants