Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger-core support #60

Open
seratch opened this issue Jan 17, 2014 · 6 comments
Open

swagger-core support #60

seratch opened this issue Jan 17, 2014 · 6 comments

Comments

@seratch
Copy link
Member

seratch commented Jan 17, 2014

Swagger is a pretty useful library for RESTful APIs documentation.

https://github.com/wordnik/swagger-core

If integrating swagger with Skinny apps is easiler than Scalatra directly, it's very cool.

http://scalatra.org/2.2/guides/swagger.html

@ghost ghost assigned seratch Jan 17, 2014
@seratch
Copy link
Member Author

seratch commented Jan 19, 2014

scalatra-swagger for Scalatra 2.2 doesn't work with json4s 3.2.5 or higher. I just created a prototype but couldn't design easy-to-use APIs. We may need more time to suport swagger.

@seratch seratch modified the milestones: 1.2.0, 1.1.0 Jun 13, 2014
@seratch seratch modified the milestones: 1.3.0, 1.2.0 Jul 20, 2014
@seratch seratch modified the milestones: 1.3.0, 1.4.0 Aug 24, 2014
@sixman9
Copy link

sixman9 commented Sep 23, 2014

Hi @seratch,
Do you think you could re-attempt the addition/example of Swagger support again, as the latest Scalatra 2.3.x Swagger Support page now seems to suggest a version of json4s greater than 3.2.5 in current use (3.2.9 to be exact):

(exert from Swagger Support)

Dependencies

Don't forget to add the JSON libraries to your project/build.scala file to make this work:

"org.scalatra" %% "scalatra-json" % "2.3.0",
"org.json4s" %% "json4s-native" % "3.2.9",

I am aware that you currently use '"json4s-native" % "3.2.10"' within Skinny, I'm just hoping there's not too much of a difference between the two json4s versions.

@seratch
Copy link
Member Author

seratch commented Sep 27, 2014

@sixman9
Sorry for late reply. I believe that scalatra-swagger's json4s issue no longer exists. scalatra-swagger will work with different version of json4s.

I still have passion to create swagger module for Skinny. I hope we'll be able to provide easy-to-use APIs for Skinny users.

@seratch seratch modified the milestones: 2.0.x, 1.4.x Feb 3, 2015
@metasim
Copy link

metasim commented Feb 1, 2016

+1 for this feature.

@josgraha
Copy link

If you were to implement this feature where and how would be the best way to do it?

@seratch
Copy link
Member Author

seratch commented Mar 29, 2016

Writing annotations that are unused for application's behavior and they're needed only for swagger api-docs is a verbose and uncertain approach.

Just an idea. Capturing requests and building api-docs (maybe it won't be complete, though) may be reasonable enough.

@seratch seratch removed this from the 2.0.x milestone May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants