Skip to content

An example calling the Swagger API? #1078

Answered by sbwalker
ADefWebserver asked this question in Q&A
Discussion options

You must be logged in to vote

@ADefWebserver due to the multi-tenant aspect of Oqtane, calls to the back-end API need to identify the tenant/site. This is currently supported by passing the AliasId as the first element in the Url path ( in your screen shot above it says "site" but the Oqtane core API uses /{alias}/api/entity ). Based on the AliasId the system is able to lookup the Tenant and Site in the database. In addition to multi-tenancy there is also authentication and authorization requirements. Currently Oqtane only supports cookie auth - so if you want to call the API you need to have a valid auth cookie. In addition, most API methods require authorization. Authorization is based on the SiteId and it retrieves…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ADefWebserver
Comment options

Comment options

You must be logged in to vote
1 reply
@ADefWebserver
Comment options

Answer selected by ADefWebserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants