Skip to content

Commit 1642096

Browse files
authored
replace Swagger with SwaggerUI
the usage example with Swagger() confused me and burned a few minutes
1 parent 8e03c38 commit 1642096

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

jooby-swagger/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
})
3636
...;
3737

38-
new Swagger().install(this);
38+
new SwaggerUI().install(this);
3939

4040
}
4141
```
@@ -74,7 +74,7 @@ The ```path``` option controls where to mount the [Swagger](http://swagger.io) r
7474
{
7575
...
7676

77-
new Swagger("docs").install(this);
77+
new SwaggerUI("docs").install(this);
7878

7979
}
8080
```
@@ -89,7 +89,7 @@ The ```filter``` option controls what is exported to [Swagger](http://swagger.io
8989
{
9090
...
9191

92-
new Swagger()
92+
new SwaggerUI()
9393
.filter(route -> {
9494
return route.pattern().startsWith("/api");
9595
})

0 commit comments

Comments
 (0)