-
Notifications
You must be signed in to change notification settings - Fork 72
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
Change HTTP Gateway for ChainAPI test calls #1738
Comments
I have an endpoint with the following reserved parameters
When I call
I update the reserved parameters as below
When I call
I would have expected
|
I created an endpoint with a user-defined I reopened the issue to discuss the above |
@andreogle for visibility |
Well yes this is expected,
from #1831 (comment) |
No problems with that, I'm referring to this The JSON API response is at the root of the response body or in |
I'm a bit confused by this. My understanding was that this change was essentially to make expose this i.e. I would expect to see this from your example above. {
"id": "bitcoin",
"symbol": "btc",
"name": "Bitcoin"
} I'm not following why |
What you're describing is pre-existing behavior. I only made this change in #1794: airnode/packages/airnode-node/src/api/index.ts Lines 237 to 244 in 7f3c492
Here is the corresponding E2E test: airnode/packages/airnode-node/test/e2e/http.feature.ts Lines 38 to 55 in 7f3c492
|
The only use case for |
Closing this, the remainder will be tracked by #1845 |
We need to do change HTTP Gateway to make it usable for ChainAPI test API call purposes. The user enters values for each endpoint parameters. e.g. a currency conversion endpoint expects: from, to and amount. The enter these, click execute and the Airnode gateway gets called with these request parameters
The response gets returned to the end user. They can then play with the reserved parameters (if they are user defined) and see the encoded value change in real time. No Airnode/backend calls involved at this point.
The use case:
Changes to be made:
Change of the gateway discussion here
Designs on ChainAPI side here
The text was updated successfully, but these errors were encountered: