How to automatically update Open API resource

  • Goal:

We have a REST API connected to Retool as an OpenAPI resource. Every few days, we deploy changes to it. However, the Retool resource doesn't reflect the newest version of the API. I have to create a new resource for the latest changes to be reflected.

How can I make it so that, whenever we update the API, the changes are automatically updated on Retool?

Hi @Javi_V, could you share an example of the changes we need to automatically update? Before and after screenshots would be great.

Hi Paulo,

For example, if an endpoint of the API has been removed in the latest deployment, that endpoint should no longer be available in the resource creation menu.

Likewise, if a new endpoint has been created, it should be available. If the expected body elements of a post request have changed, that should be reflected too in the resource creation menu.

Hope this helps clarify my question.

Javi

Thanks for expanding on your question! :slightly_smiling_face:

This is currently not possible but I created an internal feature request and included your use case. We'll update you here with any news.

Thx Paulo!

this seems to be fixed right? unless I've misunderstood the problem, mine seems to update the endpoint list as long as the spec file is updated

1 Like

Hi @bobthebear,

That is promising to hear that the endpoints are updating as expected for you :sweat_smile:

I would love to hear from @Javi_V on if they are seeing the same behavior. It looks like the ticket that Paulo had created for this issue is not marked as completed, but there may have been other changes/updates to our Open API resource that remedied this issue.

I had been working on another issue where Open API endpoints were being unexpectedly cached and it was having a similar effect of not displaying the correct endpoints. I forgot if that was fully resolved or simply on the roadmap but if this issue pops up again I can reopen this post and ping the feature.

1 Like