Re: Defining role/permission security

2016-10-23 Thread tony tam
Hi, yes, you would create multiple securityDefinition objects--see here for details on that structure. Then, on each operation that is secured, assign the required security, which references

Re: Handling vendor extensions into templates

2016-10-23 Thread Alex Dobjanschi
In reality, vendorExtensions are not parsed in any kind, and the runtime data-type is ObjectNode, which to be honest I have no idea how to render with jmustache. On Friday, October 21, 2016 at 6:51:48 PM UTC+3, tony tam wrote: > > Take a look here: > >

Re: Strange behavior when loading custom templates

2016-10-23 Thread Alex Dobjanschi
The way Swagger loads custom templates doesn't necessarily follow the structure of default ones, and overloads are not obvious but ... it was working, I had to straighten out directory layout :) On Friday, October 21, 2016 at 9:01:06 AM UTC+3, Alex Dobjanschi wrote: > > Hello guys, > > I'm

Re: Defining role/permission security

2016-10-23 Thread Tamer Shahin
I'm quite interested in this as well! is there any way (within the same swagger file) to create a set of basic endpoints available as open/public API and a superset for private/internal use only. Thanks! Il giorno giovedì 20 ottobre 2016 18:30:11 UTC+1, Diff ha scritto: > > In my API