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.11
Last Version

Last Version

1.2.1
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.11

How to add to project

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

Dependencies

compile (1)

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

provided (1)

Group / Artifact Type Version
com.typesafe.akka : akka-http_2.11 jar [10.0,10.1)

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.2.1
1.2.0
1.0.0
0.1.0