americanas-tech / restQL-golang

Microservice query language and platform
http://restql.b2w.io/
MIT License
17 stars 8 forks source link

Improve restQL debugging: feature toggles and new strategy #66

Closed caiorcferreira closed 3 years ago

caiorcferreira commented 3 years ago

This PR introduces a new strategy to enable the verbose response from restQL using a HTTP header X-Restql-Debug.

It also adds feature toggles to enable/disable query param and header strategy for debug. To maintain backwards compatibility the query param strategy is enabled by default.