Re: Please help translate Swagger 2.0 simple example to OAS3

2018-02-12 Thread Daniel Belcher
Thanks Ron!  That worked and was quite helpful.

On Monday, February 12, 2018 at 2:38:25 PM UTC-8, Ron wrote:
>
> You can create a gist at gist.github.com, and feed the converter the link 
> to the raw instance of the gist.
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com > on behalf of 
> Daniel Belcher <d...@mcneel.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Monday, February 12, 2018 at 15:07
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Re: Please help translate Swagger 2.0 simple example to OAS3
>
>  
>
> Ah, interesting.  Well, that would come in useful, but I'm just learning 
> swagger and I don't yet have a spec published, so I can't really use that 
> converter.
>
> On Monday, February 12, 2018 at 1:43:55 PM UTC-8, Ron wrote: 
>
> You can use a converter tool such as oai.swagger.io/api/convert?url=<...>.
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of Daniel Belcher <
> d...@mcneel.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Monday, February 12, 2018 at 09:46
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Please help translate Swagger 2.0 simple example to OAS3
>
>  
>
> Hi All- 
>
>  
>
> I managed to get a simple POST API with swagger 2.0 before realizing I 
> should probably start learning and experimenting with OAS3 instead.  Here 
> is the working swagger 2.0 simple test that works great:
>
>  
>
> swagger: "2.0"
> # ...
> paths:
>   /Rhino/Geometry/Point3d/New:
> post:
>   tags:
>   - "all"
>   summary: "Create new Point3d"
>   operationId: "Point3dNew"
>   consumes:
>   - "application/json"
>   produces:
>   - "application/json"
>   parameters:
>   - in: "body"
> name: "body"
> required: true
> schema:
>   type: "array"
>   items:
> type: "number"
>   responses:
> 200:
>   description: "OK"
> 400:
>   description: "Invalid input"
>
>  
>
> I can POST the following:
>
>  
>
> [
>   1,2,3
> ]
>
>  
>
> and it returns the following Response body:
>
>  
>
> {"X":1.0,"Y":2.0,"Z":3.0}
>
>
> ...which is great, so far so good.  
>
>  
>
> However, I'm having trouble figuring out how to translate this to OAS3.  
> I'm afraid the petstore sample is a little too complex for this rather dumb 
> API (and rather dumb developer).
>
>  
>
> Any help would be appreciated,
>
> -Dan
>
>  
>
> -- 
> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> 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 swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help translate Swagger 2.0 simple example to OAS3

2018-02-12 Thread Ron Ratovsky
You can create a gist at gist.github.com, and feed the converter the link to 
the raw instance of the gist.

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of Daniel Belcher 
<d...@mcneel.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Monday, February 12, 2018 at 15:07
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: Please help translate Swagger 2.0 simple example to OAS3

 

Ah, interesting.  Well, that would come in useful, but I'm just learning 
swagger and I don't yet have a spec published, so I can't really use that 
converter.

On Monday, February 12, 2018 at 1:43:55 PM UTC-8, Ron wrote: 

You can use a converter tool such as oai.swagger.io/api/convert?url=<...>.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Daniel Belcher 
<d...@mcneel.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Monday, February 12, 2018 at 09:46
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Please help translate Swagger 2.0 simple example to OAS3

 

Hi All- 

 

I managed to get a simple POST API with swagger 2.0 before realizing I should 
probably start learning and experimenting with OAS3 instead.  Here is the 
working swagger 2.0 simple test that works great:

 

swagger: "2.0"
# ...
paths:
  /Rhino/Geometry/Point3d/New:
post:
  tags:
  - "all"
  summary: "Create new Point3d"
  operationId: "Point3dNew"
  consumes:
  - "application/json"
  produces:
  - "application/json"
  parameters:
  - in: "body"
name: "body"
required: true
schema:
  type: "array"
  items:
type: "number"
  responses:
200:
  description: "OK"
400:
  description: "Invalid input"

 

I can POST the following:

 

[
  1,2,3
]

 

and it returns the following Response body:

 

{"X":1.0,"Y":2.0,"Z":3.0}


...which is great, so far so good.  

 

However, I'm having trouble figuring out how to translate this to OAS3.  I'm 
afraid the petstore sample is a little too complex for this rather dumb API 
(and rather dumb developer).

 

Any help would be appreciated,

-Dan

 

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help translate Swagger 2.0 simple example to OAS3

2018-02-12 Thread Daniel Belcher
Ah, interesting.  Well, that would come in useful, but I'm just learning 
swagger and I don't yet have a spec published, so I can't really use that 
converter.

On Monday, February 12, 2018 at 1:43:55 PM UTC-8, Ron wrote:
>
> You can use a converter tool such as oai.swagger.io/api/convert?url=<...>.
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com > on behalf of 
> Daniel Belcher <d...@mcneel.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Monday, February 12, 2018 at 09:46
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Please help translate Swagger 2.0 simple example to OAS3
>
>  
>
> Hi All- 
>
>  
>
> I managed to get a simple POST API with swagger 2.0 before realizing I 
> should probably start learning and experimenting with OAS3 instead.  Here 
> is the working swagger 2.0 simple test that works great:
>
>  
>
> swagger: "2.0"
> # ...
> paths:
>   /Rhino/Geometry/Point3d/New:
> post:
>   tags:
>   - "all"
>   summary: "Create new Point3d"
>   operationId: "Point3dNew"
>   consumes:
>   - "application/json"
>   produces:
>   - "application/json"
>   parameters:
>   - in: "body"
> name: "body"
> required: true
> schema:
>   type: "array"
>   items:
> type: "number"
>   responses:
> 200:
>   description: "OK"
> 400:
>   description: "Invalid input"
>
>  
>
> I can POST the following:
>
>  
>
> [
>   1,2,3
> ]
>
>  
>
> and it returns the following Response body:
>
>  
>
> {"X":1.0,"Y":2.0,"Z":3.0}
>
>
> ...which is great, so far so good.  
>
>  
>
> However, I'm having trouble figuring out how to translate this to OAS3.  
> I'm afraid the petstore sample is a little too complex for this rather dumb 
> API (and rather dumb developer).
>
>  
>
> Any help would be appreciated,
>
> -Dan
>
>  
>
> -- 
> 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 swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.