ebowman / api-first-hand

API-First bootstrapping tool for building RESTful web services from a Swagger/OpenAPI spec
MIT License
142 stars 22 forks source link

Not able to serve index.html at custom url #31

Closed harshvs20 closed 8 years ago

harshvs20 commented 8 years ago

The plugin works smoothly with minor tweaks but I am not able to serve index.html at custom endpoint.

The swagger UI lods fine at: GET / controllers.Assets.versioned(path="/public/swagger", file: Asset = "index.html") GET /index.html controllers.Assets.versioned(path="/public/swagger", file: Asset = "index.html")

but if I try to serve the same at, for example

GET /myservice/v1/swagger controllers.Assets.versioned(path="/public/swagger", file: Asset = "index.html")

it never loads the swagger UI.

Is there something i am missing ? or there is a bug in the library ?

harshvs20 commented 8 years ago

used GET /myservice/v1/swagger/ui controllers.Default.redirect(to = "/index.html") it works :)