Comments (9)
I published a plugin for this: https://github.com/dwickern/sbt-swagger-play
from swagger-play.
How is this project even working for you? Arent you on play 2.7 or newer? Thanks
from swagger-play.
Yes, I am on play 2.7. Every time to create swagger documentation I call the endpoint. What I would like to achieve it to be created automatically, e.g. when I build or run the app.
Thanks
from swagger-play.
I'm one step behind you, when I do as it says and add this:
libraryDependencies ++= Seq(
"io.swagger" %% "swagger-play2" % "2.0.1-SNAPSHOT"
)
it looks for a jar on mavencentral that isn't here:
https://mvnrepository.com/artifact/io.swagger/swagger-play2 - 2.0.1-SNAPSHOT ain't there
How did you solve this?
from swagger-play.
This is the one for me:
"io.swagger" %% "swagger-play2" % "1.6.1"
try this one
from swagger-play.
That is labeled to support up to scala 2.12, but I'm on 2.13...
from swagger-play.
I think I had that issue as well when I tried to switch the scala version to 2.13. Eventually I used scala 2.12.19 and following swagger dependency:
"io.swagger" %% "swagger-play2" % "1.7.1",
from swagger-play.
Ah ok you downgraded the scala version. I'm a bit scared to do that just for this module to be honest.
from swagger-play.
I want to do it at build time, I believe this would have to be some kind of SBT or Maven plugin.
If you want to do it at startup, without calling the endpoint swagger.json
, you could call directly the underlying Swagger controller ApiHelpController
, there are several methods that could use depending on your need.
from swagger-play.
Related Issues (20)
- Update to Play 2.7 HOT 3
- @ApiModelProperty(hidden = true) doesn't work HOT 3
- Update to jackson-module-scala 2.9.8 HOT 1
- Route rule with optional package name for controllers (Play2.7) HOT 1
- Swagger timeout on HTTPS listener (and workaround)
- Use Swagger Core 2.x / OpenAPI 3.0 HOT 1
- ApiListingCache share same cache for different docRoots
- Hidding query parameter from the controller method HOT 1
- Scala 2.13.x support HOT 5
- Unable to load play routes after publishing build locally for play2.6
- Java Play 2.7 "CreationException: Unable to create injector:"
- Support play 2.8.x HOT 1
- Add support for vendor Extensions in API Info
- Method newInstance Deprecated as of Java 9
- Usage section isn't up-to-date? HOT 4
- oneOf, anyOf, allOf support? HOT 1
- controllers.ApiHelpController.getResource(path = "/users") picks up tags from other pathes
- swagger.api.host default value
- jackson InvalidDefinitionException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-play.