REST query and swagger

Hi,
I’ve created a simple rest query… how do I call it?
Whenever i try to call from browser i got:

<oauth>
<error_description>
An Authentication object was not found in the SecurityContext
</error_description>
<error>unauthorized</error>
</oauth>

Also is there a way to display swagger page from app?

Thanks

I’ll try to rephrase my question:
I would like to retrieve my data through a rest api call in a different front-end. How do I do it?
If possible, how I could grant anonymous access to rest api?

Also, is there a way to display all my created rest queries in a swagger-like page?

Thanks

Ok, I’ve followed this tutorial https://doc.cuba-platform.com/manual-6.8/rest_api_v2_ex_javascript_usage.html

also i’ve read about anonymous access as well.

In the upcoming version 6.9, any running CUBA application exports the project-specific Swagger documentation including REST queries and services, see https://doc.cuba-platform.com/manual-6.9/rest_swagger.html

Thank you Konstantin for sharing the info