Forum Discussion

LionPaw52's avatar
LionPaw52
New Member
9 years ago

Swagger - support for "in: body", i.e. schema for json requests

Hi!

I have a fairly complete swagger file that uses a lot of definitions for parameters.

It's been created using existing a swagger editor and looks ok.

When imporiting to Ready! API there are no errors and I get all my PUT, GET, POST etc defined as expected.

All query parameters are also correct as far as I can see.

 

But the Ready! API feature to help creating a json template from schema is greyed out.

I.e "Media type: application/json" cannot be used and I have to write (or paste) a json myself.

 

Does this feature work for swagger files or is it wadl only?

Or have I/we missed something.

/Bo

 

  • Hi Bo,

     

    thanks - unfortunately this isn't supported for JSON schemas or Swagger; we're working on an update of the Swagger plugin that will create sample messages for each JSON body during import - to at least help you get started; I'll try to remember to post here when it gets published :-)

     

    Take care,

     

     

    /Ole

    • asn_007's avatar
      asn_007
      Contributor
      Is this feature implemented in the openSource and commercial versions. Am I missing something? I am using Opensource version 5.4.0 and when I import I dont see the request body updated automatically. You can use the petstore swagger file to try and test this.