riok / Kreya

Kreya is a GUI client for gRPC and REST APIs with innovative features for environments, authorizations and more.
https://kreya.app
284 stars 5 forks source link

Option to automatically create new methods calls when loading updated contract #223

Closed AFract closed 5 months ago

AFract commented 5 months ago

Hello,

When clicking on the refresh button of an Importer (in REST for example) image

It would be nice to have an option to automatically generate sample calls for all new discovered methods in updated Swagger, instead of having to search them from the "Add > New operation > Use imported API definition as template" panel.

Maybe a such option already exists, but I wasn't able to find it.

Thank you.

CommonGuy commented 5 months ago

This feature already exists: https://kreya.app/docs/importers/#generating-operations-automatically

Simply check the "Create an operation for each API method" checkbox in your OpenAPI importer. This also creates new operations when clicking the refresh button

AFract commented 5 months ago

Hello, Thank you, the option was unchecked, and I thought it was only during project creation, not for future "refreshes".

Maybe (for a future release of course), you could list all new endpoints found during refresh and ask for which operation(s) user wants to have the generation done automatically instead of "all or nothing" (by a list of checkboxes for all operations found) ?

Regards

CommonGuy commented 5 months ago

Good idea, I have added this to our backlog