-
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
Allow API call to be skipped in endpoints #1527
Comments
Setting endpointId to zero will cause problems in configs with multiple OIS. How about changing "operation" and "fixedOperationParameters" to optional from required in the endpoint as an indicator? |
I and @bdrhn9 understood the above because we talked about this offline but I doubt this is clear to anyone else. So we want to be able to define an endpoint that skips the API call. If this is a regular endpoint that calls an API
an endpoint that skips the API call could be
The reasoning is that omitting the Another point here is that
I'm less convinced about this being an urgent enough need to be in 0.10.0 now. |
I looked into this some time back. About 6 months ago More info at MDN here |
The OIS will still need to specify that the API call is to be skipped without using axios-specific features, so I'm not sure how that helps this |
Hi, I have successfully tested this. Steps: Clear the endpoint and only keep the relevant entries in the preprocessingSpecifications of the coingecko-pre-processing example. Then deploy Airnode and attempt making a request. Deploy the Airnode and attempt making a request |
Sometimes you want Airnode to not make an API call and just use pre/post processing (for example, to generate a pseudo-random number). Both endpointId and templateId are hashes (endpointId only by convention), which means that they should never be zero. Then, we can use zero endpointId/templateId as a signal of omitting the API call.
@metobom mentioned to me that he wanted to contribute to Airnode and this may be an easy enough task. Also, it would be nice to have this in 0.10.0. @aTeoke for visibility.
The text was updated successfully, but these errors were encountered: