Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
@shogunpurple noticed there was an issue with using the public API to access development apps from non-builder roles, when this occurred the response was a re-direct as we expect in the browser, however this makes little sense in an API call.
I've updated the test cases a bit around the public API to make this a testable scenario, as well as updating currentapp.ts to 403 in these cases rather than a re-direct, by detecting it is using an API key.
I've also removed the isTest which was hiding this from our test cases and instead check if the call is coming from a browser.
Final small update is the OpenAPI spec was a little hard to use as you had to work out all the variables you needed, I've defaulted these so that when imported to tools that support OpenAPI specifications it shows all the variables listed with descriptions, making it a lot quicker to get up and running.
Description
@shogunpurple noticed there was an issue with using the public API to access development apps from non-builder roles, when this occurred the response was a re-direct as we expect in the browser, however this makes little sense in an API call.
I've updated the test cases a bit around the public API to make this a testable scenario, as well as updating
currentapp.ts
to 403 in these cases rather than a re-direct, by detecting it is using an API key.I've also removed the
isTest
which was hiding this from our test cases and instead check if the call is coming from a browser.Final small update is the OpenAPI spec was a little hard to use as you had to work out all the variables you needed, I've defaulted these so that when imported to tools that support OpenAPI specifications it shows all the variables listed with descriptions, making it a lot quicker to get up and running.