swagger-akka-http / swagger-scala-module

Swagger support for scala
Apache License 2.0
10 stars 10 forks source link

Get Started Help #115

Closed MinZe25 closed 3 years ago

MinZe25 commented 3 years ago

Hello, I have a scala 2.11 sbt project and I want to add swagger but I can't find a way to make it work without adding a framework. (I would prefer not to use a framework). Do you have a get started guide? Thanks!!

pjfanning commented 3 years ago

Including this jar on your classpath is enough to enable it - this is enabled by this file in the jar - https://github.com/swagger-akka-http/swagger-scala-module/blob/develop/src/main/resources/META-INF/services/io.swagger.v3.core.converter.ModelConverter

https://github.com/swagger-akka-http/swagger-akka-http/blob/master/src/main/scala/com/github/swagger/akka/SwaggerHttpService.scala#L59 will give you an idea of the code needed to generate an OpenAPI specification.

MinZe25 commented 3 years ago

Thanks!! I will give it a try and give feedback as soon as possible :)