doubts on swagger

2017-03-23 Thread Guido Muscioni
Hi everyone, I am relatively new in the field of swagger specification. I am looking for the services that provides a swagger specification that can be used with swagger-codegen, but i can not find anything about. For example I am looking for a restaurant provider, as TripAdvisor, that provides

YAML definition syntax when a field is an array

2017-03-23 Thread Νίκος Σιδηρόπουλος
I have a problem in my YAML syntax. My response in JSON is like this: *{* * "wordtxtword": "καρδιολόγος",* * "relations": [* * {* * "relation": "treats",* * "related_words": [* * "έμφραγμα",* *

Re: YAML definition syntax when a field is an array

2017-03-23 Thread Ron Ratovsky
type: object properties:     wordtxtword:     type string     relations:     type: array     items:     type: object

Re: custom datatype in request body for POST method

2017-03-23 Thread Dinesh PS
@ApiOperation(value = "Add", notes = "Add Notes", response = Add.class) @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {MediaType.APPLICATION_JSON_VALUE}, consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE}) @ApiResponses( { @ApiResponse( code = 201, response =

Re: custom datatype in request body for POST method

2017-03-23 Thread tony tam
You need to share the swagger json file that is generated from your code for help with the swagger ui question. Can you paste it in here? > On Mar 23, 2017, at 5:41 AM, Dinesh PS wrote: > > @ApiOperation(value = "Add", notes = "Add Notes", response = Add.class) >

Re: doubts on swagger

2017-03-23 Thread tony tam
You can look at APIs.guru, or even in https://swaggerhub.com for definitions. Many developer sites are now using swagger and have swagger-ui embedded in them. That means they’re serving a swagger definition, like this: https://www.expedia.com/static/mobile/swaggerui/

How to intergrate python3 -m swagger_server with wsgi

2017-03-23 Thread Karri Kaksonen
My generated swagger_server works great when started with: python3 -m swagger_server The problem starts when I want to get the UID of the client certificate when using dual side TLS authentication. Dual side TLS authentication worked well but I did not find out how to grab the UID from the

Re: Dependencies for Java generated code

2017-03-23 Thread Tony Tam
Look in the Pom file. You're wise to run mvn dependency:tree to get the full list, even if you don't "use" maven. > On Mar 23, 2017, at 9:06 AM, 'Ian Fallon' via Swagger > wrote: > > Hi, > > Could someone point me in the direction of all the

Re: Dependencies for Java generated code

2017-03-23 Thread 'Ian Fallon' via Swagger
Hi, Thanks for your quick reply - I've starting looking in there. Not sure where to get mvn from (Windows) - I guess I have to have Maven installed to get that. I'm not that good at this stuff - I can't even figure out how to download a Jackson release on Git Hub - gah! I just want the JARs !

Dependencies for Java generated code

2017-03-23 Thread 'Ian Fallon' via Swagger
Hi, Could someone point me in the direction of all the dependencies the generated Java code depends on ? I can't find this documented. We don't have Maven and manage our Java libraries "manually". I've got JAX-RS / Jersey but that doesn't appear to be enough. Ian -- You received this message

Re: Dependencies for Java generated code

2017-03-23 Thread tony tam
OK well, getting maven is easy https://maven.apache.org/download.cgi I suggest you just install that per instructions and life will be a lot easier. It downloads the dependencies for you. > On Mar 23, 2017, at 9:36 AM, 'Ian Fallon' via Swagger >