swagger-ui-akka-http


License

License

Categories

Categories

Akka Container Microservices Reactive libraries Swagger Program Interface REST Frameworks
GroupId

GroupId

co.pragmati
ArtifactId

ArtifactId

swagger-ui-akka-http_2.13
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

swagger-ui-akka-http
swagger-ui-akka-http
Project URL

Project URL

https://github.com/pragmatico/swagger-ui-akka-http
Project Organization

Project Organization

co.pragmati
Source Code Management

Source Code Management

https://github.com/pragmatico/swagger-ui-akka-http.git

Download swagger-ui-akka-http_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/co.pragmati/swagger-ui-akka-http_2.13/ -->
<dependency>
    <groupId>co.pragmati</groupId>
    <artifactId>swagger-ui-akka-http_2.13</artifactId>
    <version>1.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/co.pragmati/swagger-ui-akka-http_2.13/
implementation 'co.pragmati:swagger-ui-akka-http_2.13:1.4.0'
// https://jarcasting.com/artifacts/co.pragmati/swagger-ui-akka-http_2.13/
implementation ("co.pragmati:swagger-ui-akka-http_2.13:1.4.0")
'co.pragmati:swagger-ui-akka-http_2.13:jar:1.4.0'
<dependency org="co.pragmati" name="swagger-ui-akka-http_2.13" rev="1.4.0">
  <artifact name="swagger-ui-akka-http_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='co.pragmati', module='swagger-ui-akka-http_2.13', version='1.4.0')
)
libraryDependencies += "co.pragmati" % "swagger-ui-akka-http_2.13" % "1.4.0"
[co.pragmati/swagger-ui-akka-http_2.13 "1.4.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.0

provided (2)

Group / Artifact Type Version
com.typesafe.akka : akka-http_2.13 jar [10.1,10.2)
com.typesafe.akka : akka-stream_2.13 jar [2.5,2.6)

Project Modules

There are no modules declared in this project.

swagger-ui-akka-http

swagger-ui-akka-http is compatible with swagger-akka-http and is an alternative to drop the static Swagger site files in the resources directory of your project.

Add dependency to build.sbt

Version 1.0.0 for Scala 2.11 if using akka-http-experimental

libraryDependencies += "co.pragmati" %% "swagger-ui-akka-http" % "1.0.0"

Version 1.2.0 for Scala 2.12 if using with akka-http and swagger-ui 3.13

libraryDependencies += "co.pragmati" %% "swagger-ui-akka-http" % "1.2.0"

Version 1.4.0 for Scala 2.13 if using with akka-http and swagger-ui 3.24.3

libraryDependencies += "co.pragmati" %% "swagger-ui-akka-http" % "1.3.0"

Add SwaggerSite route

Mix this trait with a new or existing class that has access to the existing routes:

object MyApp extends App with SwaggerSite

and concatenate the swaggerSiteRoute to the existing route definitions:

  val routes = swaggerSiteRoute ~ otherRoute

The swagger UI will be accessible under:

http://<host>:<port>/swagger
co.pragmati

Pragmatico

Pragmatico

Versions

Version
1.4.0
1.3.0