-
Notifications
You must be signed in to change notification settings - Fork 2.6k
help request: I want to rewrite the information returned by the interface in serverless-post-function #12104
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
Comments
Maybe you can try this plugin https://apisix.apache.org/docs/apisix/plugins/response-rewrite/ |
Thank you very much. I have reviewed the corresponding documents, but there are still some difficulties for me as I do not have a complete example I expect to obtain the content returned by the interface, then determine whether the interface content meets a certain condition, and then call another service's interface query. Based on the queried content, I rewrite the interface return and return the rewritten content to the frontend I am unable to retrieve the content returned by the interface |
Some clue with working with response body: https://docs.api7.ai/hub/serverless-functions#modify-a-specific-field-in-response-body |
Does this plugin fit your design? https://github.com/bzp2010/apisix-plugin-pipeline-request |
Thank you very much, but I have encountered a new problem,serverless-post-function phase body_filter
error message
|
Thank you very much, I will try it out |
Description
hello
I want to rewrite the information returned by the interface in serverless post function. How can I obtain the information returned by the interface and complete the rewriting logic to return it to the frontend. Please tell me how to do it
Environment
The text was updated successfully, but these errors were encountered: