Re: Using Swagger Spec to run automated tests against your API

2017-05-08 Thread 'Noah Dietz' via Swagger
Hey y'all! Great conversation! This is something I've been working in/on for a few years now, here and there. I started by working on github.com/apigee-127/swagger-test-templates , a unit test scaffolding generator (the concept of which I think was mentioned a bit in conversation here earlier?

Re: Using Swagger Spec to run automated tests against your API

2017-05-08 Thread Cody Reichert
I've been really interested in this problem for a while now, and your assumption is correct that it's definitely possible. We've been working on solving this at Assertible , and a couple of the harder parts we've hit are: Route parameters and other variables. Required "s

Re: Creating other kinds of documentation besides API reference with Swagger

2017-05-08 Thread Ron Ratovsky
That’s out of scope for Swagger. You can link to external docs from different point in the spec, but the content there would be entirely controlled by you. From: on behalf of Chris Hermansen Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Monday, 8 May 2017 at 14:52 To: Swa

Creating other kinds of documentation besides API reference with Swagger

2017-05-08 Thread Chris Hermansen
I am learning about Swagger, which seems quite wonderful generally, but I haven't yet found a discussion of how to make documentation other than an API reference. In case I'm not being clear, I'm thinking of User Guide, which would explain how to use my API elements to accomplish user-centric t

Re: Requiring a parameter to show data

2017-05-08 Thread Ron Ratovsky
How your API reacts when you don’t send a required parameter is up to your app… From: on behalf of Danny Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Friday, 5 May 2017 at 8:18 To: Swagger Subject: Requiring a parameter to show data Hello, I have set up some basic

Re: Semicolon as an array separator

2017-05-08 Thread Ron Ratovsky
There’s no direct way to describe it. You can use an extension, but it won’t allow you to automate things around it. From: on behalf of Peter Popov Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Sunday, 7 May 2017 at 12:25 To: Swagger Subject: Semicolon as an array separa

Re: Swagger on Jersey 2 and grizzly, does it actually work?

2017-05-08 Thread Ron Ratovsky
So the first issue is that you use a really old version of swagger-core, which we don’t really support anymore. You’d have to update to the latest version (and it will require code changes). Beyond that, integration with Grizzly should work, it’s just not as common and as Grizzly goes, would

Re: Integration with FHIR JSON schemas doesn't work

2017-05-08 Thread Ron Ratovsky
Not really sure if you expect me to go over all the files you sent. Looking at a few – those are still not valid Schema Objects. They might be valid JSON Schema but the spec doesn’t support JSON Schema to its fullest. From: on behalf of Virginie Reply-To: "swagger-swaggersocket

Re: Getting the style from the editor

2017-05-08 Thread Ron Ratovsky
There’s where https://github.com/swagger-api/swagger-ui comes in. From: on behalf of Jamie Phan Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Monday, 8 May 2017 at 3:39 To: Swagger Subject: Getting the style from the editor Hello all, After I finished the YAML in

Re: Error when generating python client.

2017-05-08 Thread tony tam
Well, that’s no swagger document! So I don’t expect it would work. > On May 8, 2017, at 10:38 AM, Aleksei Badyaev > wrote: > > I tried generate Python client for my REST API with command (as is in > documentation in swagger-codegen): > > $ java -jar modules/swagger-codegen-cli/target/swagger

Error when generating python client.

2017-05-08 Thread Aleksei Badyaev
I tried generate Python client for my REST API with command (as is in documentation in swagger-codegen): $ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i /tmp/schema.json -l python -o /tmp/client_python [main] INFO io.swagger.parser.Swagger20Parser - reading fro

Hi ,I need to know .How Asp.net core header versioning support in swaggerUI

2017-05-08 Thread sushant jha
Dear Concern Person, I was trying to implement header versioning in swagger.For that ,i have searched couple of blogs and links .Its saying ,its not supported and all. i can able to implement through query parameter. But i need to implement through header versioing in Asp.net Core web api. Kind

How to implement Swagger with Odata

2017-05-08 Thread Mario Borginho
Hello, i been trying to implement swagger on my odata 3 project , but i haven't been successful with this task. GlobalConfiguration.Configuration > .EnableSwagger(c => > { > c.SingleApiVersion("v1", "NB.EAM.WebAPI.Odata"); > > var baseDirectory = AppDomain.Curren

How to implement swagger for QueryString in WebAPI Core.

2017-05-08 Thread manish srivastava
*Code:* *[HttpGet*("[action]/{baseId:int}/{startIndex:int}/{pageCount:int}")] [Route("ByModuleId")] public IActionResult ByModuleId([FromQuery] int baseId, int startIndex, int pageCount) { IEnumerable observations = observationservices.ByBaseId(baseId, startI

Getting the style from the editor

2017-05-08 Thread Jamie Phan
Hello all, After I finished the YAML in the online editor (http://editor.swagger.io/), I would like to get the exact same style from it. However, after I navigate the "Generate Client", I can't find the exact same. How can I get the HTML of the same style from the editor? Many Thanks -- You