nielsfalk / ktor-swagger

Apache License 2.0
133 stars 38 forks source link

Is it possible somehow to add static openApi.json file ? #48

Closed artem-bakuta closed 4 years ago

artem-bakuta commented 4 years ago

I have generated in swagger web-site openapi.json and openapi.yaml is it possible not to generate schemas from code and to replace it with static path to this files ??

JLLeitschuh commented 4 years ago

I mean, you can do that with base Ktor. If you want to do that, I don't know why you'd use this library.

artem-bakuta commented 4 years ago

I mean, you can do that with base Ktor. If you want to do that, I don't know why you'd use this library.

sorry, have you any example to that ?

JLLeitschuh commented 4 years ago

Look at serving static content in the Ktor documentation. On top of that, there's also a webjars module for Ktor if you want to use the Swagger UI in your project.

artem-bakuta commented 4 years ago

Great man, thank u !!!