Kreya 1.7 introduces generating fake data, referencing authentication configurations, adds a new light theme and other useful changes.
Generating fake data
In addition to the default Scriban features, Kreya now also implements Bogus to allow fake data generation.
For example, using {{ faker.name.first_name }}
will result in a random name.
Referencing authentication configurations
Should you need to send authentication tokens via custom headers, in the request body or elsewhere, simply reference your existing authentication configurations.
For example, if you have an authentication configuration called "oidc", then you can access the token with {{ auth.configs.oidc.value }}
Cache for importer results
Because fetching and parsing protobuf definitions may take some time, Kreya caches the imported data. If you changed your protobuf definitions, you may need to manually run the importers again (by clicking the refresh icon in the main window).
Light theme (Settings)
In the settings window (Kreya → Settings) the theme can be changed. There are three options to choose, light, dark and system default.
Send requests manually via keyboard shortcuts
With the new quick action "Send requests manually" for bidirectional and client-streaming methods in the quick action view (Ctrl+K or ⌘+K), it's a lot easier to send the requests manually. The shortcut Ctrl+⇧+⏎ or ⌘+⇧+⏎ starts the sending mode, followed by a few Ctrl+number or ⌘+number, this will send the specific requests in the desired order. Ctrl+⏎ or ⌘+⏎ is being used to complete the request.
Parameter hints and scriban function signature help
Templating has been significantly improved. The signatures of scriban functions are now displayed and the value of variables are shown on mouse hover.
In addition, various bugs have been fixed. You can find more information at the release notes.