Skip to content

[API Stitching] Provide a hook to prepare responses based on remote server reponses #626

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

Closed
sysadmins-gx opened this issue Feb 9, 2018 · 2 comments

Comments

@sysadmins-gx
Copy link

sysadmins-gx commented Feb 9, 2018

When using API stitching, remote servers may incorporate specific headers that may be of interest/required to be propagated out for the client

In the same/similar way that API stitching allows to merge schema definitions so the response data is returned, our use case requires to have a mechanism to merge response headers.

Generalizing, I think it would be ideal to have a mechanism to prepare the final response from all remote server responses would be ideal. A couple of ideas:

  • Advanced API to do responses merging.
  • A way to pass responses information out so that a hook at the server level (express, koa, etc.) has a chance to do something (final response preparation) at the very end.
@yaacovCR
Copy link
Collaborator

See #969. Not sure if this can be streamlined.

@yaacovCR
Copy link
Collaborator

yaacovCR commented May 4, 2020

See #1380. Closing this for now as progress can be tracked there.

@yaacovCR yaacovCR closed this as completed May 4, 2020
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

No branches or pull requests

3 participants