jmons / ramlwrap

Wrapping Raml around Django rest-api's
MIT License
8 stars 2 forks source link

API examples #50

Closed Emad88 closed 4 years ago

Emad88 commented 4 years ago

This will allow endpoints to have multiple named examples

Example:

responses:
    200:
        description: Card list and associated token requestors
        body:
          application/json:
            schema: !include json/get-available-cards-response.json
            examples:
              Apple Wallet:
                !include json/get-available-cards-response-apple-example.json
              Google Wallet:
                !include json/get-available-cards-response-google-example.json
jmons commented 4 years ago

This is for #51

jmons commented 4 years ago

The release has happened, waiting for travis-ci to report that the tests are ok (they have passed in travis)