Skip to content

Click of "example" doesnt populate the input field  #75

Open
@jwoodlee

Description

@jwoodlee

API is Rails Api based
I have the css and javascript in the asset pipeline and they are being generated and are loading to the browser. However when viewing a api document page and clicking on the yellow box to populate the input field with the example it does nothing. Normally for swagger ui this does work. See petstore working example ... http://petstore.swagger.io/#!/pet/addPet and click the yellow example payload.

It doesnt seem to work on my grape-swagger-rails version :(

When i hit the swagger root page (not the page in question) I get a js error in console
screen shot 2017-03-04 at 8 59 11 am

When i visit the actual endpoint page (api/users) screen renders fine. Switch from model/example works. But clicking the yellow example box - does nothing :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions