Documentation and example of filter usage
Opened this issue · 0 comments
diegorubin commented
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