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

Documentation and example of filter usage #15

Open
diegorubin opened this issue Jul 8, 2019 · 0 comments
Open

Documentation and example of filter usage #15

diegorubin opened this issue Jul 8, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@diegorubin
Copy link
Owner

In TShield exists a resource to transform request before(transform request body) and after(transform server response) but not exists documentation to usage.

Use case: In a project, it was necessary to simulate a cache of addresses. Instead of creating a mock it was used google service to recover real data.

Original flow:

client -> request_service > cache service -> response_service -> client

With TShield:

client -> request_service -> tshield -> before_filter(request_service to google_request) -> google -> after_filter(google_response to response_service) -> response_service -> client

@eduardongarcia eduardongarcia added the enhancement New feature or request label Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants