Swagger2Markup / swagger2markup-cli

Command line interface (CLI) for Swagger2Markup
Apache License 2.0
165 stars 37 forks source link

How to use the -e option? #4

Closed dsem closed 8 years ago

dsem commented 8 years ago

for the -e option, the help says:

-e <examplesPath>
    Include examples into the Paths document

What is this <examplesPath>?

responses:
  '200':
    description: OK
      schema:
        $ref: '#/definitions/Response'
      examples:
        application/json:
          field1: 23
          field2: 81533
          field3: 83288
          field4: 2440
RobWin commented 8 years ago

Hi, the primary use case is to include example HTTP request and response snippets generated by spring-restdocs. I have developed it because I use Springfox and spring-restdocs. See https://swagger2markup.readme.io/docs/spring-restdocs at the bottom.

Do you use it for a Java project?

Btw. If you like Swagger2markup, I would love to get your GitHub Star.

RobWin commented 8 years ago

You can have a look at the demo project. https://github.com/Swagger2Markup/spring-swagger2markup-demo