Giter Club home page Giter Club logo

Comments (9)

dwickern avatar dwickern commented on June 2, 2024 1

I published a plugin for this: https://github.com/dwickern/sbt-swagger-play

from swagger-play.

robertofabrizi avatar robertofabrizi commented on June 2, 2024

How is this project even working for you? Arent you on play 2.7 or newer? Thanks

from swagger-play.

akkihan avatar akkihan commented on June 2, 2024

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.

robertofabrizi avatar robertofabrizi commented on June 2, 2024

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.

akkihan avatar akkihan commented on June 2, 2024

This is the one for me:
"io.swagger" %% "swagger-play2" % "1.6.1"
try this one

from swagger-play.

robertofabrizi avatar robertofabrizi commented on June 2, 2024

That is labeled to support up to scala 2.12, but I'm on 2.13...

from swagger-play.

akkihan avatar akkihan commented on June 2, 2024

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.

robertofabrizi avatar robertofabrizi commented on June 2, 2024

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.

gaeljw avatar gaeljw commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.