Hello swagger community,

I got a question regarding multitenancy and generated swagger doc:

*Preface:*
There's several endpoints, e.g.:
http://my.server.com/cars
http://my.server.com/employees
http://my.server.com/buildings


However, most of the endpoints are tenant-based, i.e. each request is done 
in specific tenant. As most users are assigne to exactly one tenant, the 
tenant part can be left out, but in some cases the explicit tenant info is 
necessary. Thus, the tenant info is not part of the class or method 
annotation but optionally defined in the base path:
http://my.server.com/tenant/1/employees
http://my.server.com/tenant/2/employees
http://my.server.com/tenant/1/buildings

My question is now: How can I achieve this in swagger? The "try it out" 
button will always use the basePath of the swagger doc, which is without 
any tenant info.

I've been searching quite some time not, to no avail, so any help would be 
appreciated.

Thanks a lot and kind regards,
Kay

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to