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

New Feature: Include Response Headers for Open API responses #9986

Closed
markwallace-microsoft opened this issue Dec 16, 2024 · 0 comments · Fixed by #10106
Closed

New Feature: Include Response Headers for Open API responses #9986

markwallace-microsoft opened this issue Dec 16, 2024 · 0 comments · Fixed by #10106
Assignees
Labels
openapi Issues related to the OpenAPI function importer sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)

Comments

@markwallace-microsoft
Copy link
Member


name: Include Response Headers for Open API responses

In case of CREATE operation in dataverse, the response is 204 without a body, but the newly created record id is returned in a header named OData-EntityId.
THere is currently no way to get this header value from a RestApiOperationResponse

@markwallace-microsoft markwallace-microsoft added openapi Issues related to the OpenAPI function importer triage labels Dec 16, 2024
@markwallace-microsoft markwallace-microsoft moved this to Sprint: Planned in Semantic Kernel Dec 16, 2024
@evchaki evchaki added the sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community) label Dec 17, 2024
@SergeyMenshykh SergeyMenshykh moved this from Sprint: Planned to Sprint: In Progress in Semantic Kernel Jan 2, 2025
@SergeyMenshykh SergeyMenshykh moved this from Sprint: In Progress to Sprint: In Review in Semantic Kernel Jan 6, 2025
@SergeyMenshykh SergeyMenshykh moved this from Sprint: In Review to Sprint: In Progress in Semantic Kernel Jan 6, 2025
@SergeyMenshykh SergeyMenshykh moved this from Sprint: In Progress to Sprint: In Review in Semantic Kernel Jan 7, 2025
github-merge-queue bot pushed a commit that referenced this issue Jan 7, 2025
### Motivation and Context  
Currently, it's impossible to access the HTTP response and response
content headers returned by a REST API requested from OpenAPI plugins.
   
### Description  
This PR adds `RestApiOperationResponseFactory`, which can be used to
customize the responses of OpenAPI plugins before returning them to the
caller. The customization may include modifying the original response by
adding response headers, changing the response content, adjusting the
schema, or providing a completely new response.

Closes: #9986
@SergeyMenshykh SergeyMenshykh moved this from Sprint: In Review to Sprint: Done in Semantic Kernel Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi Issues related to the OpenAPI function importer sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants