Comments (6)
P.S. I am looking at the Swagger 2.0 definitions:
and getting excited because they match what I want to start outputting.
from rho.
No, the AutoSerializable
trait isn't part of the swagger process. It is an experimental construct I made up to allow you to easily send case classes. I don't think it will ever escape the examples as it feels a little 'magic'. If it belongs anywhere permanently, it would be in http4s
proper.
from rho.
No, ok. So AutoSerializable
is just part of the way the example project produces the response body.
Then how does the example project's json become a swagger json definition?
from rho.
Basically, I want to understand how to start extending this capability. Complicating things a little bit is the fact that Swagger 2.0 is much more expressive, and I kind of want to jump onto that train, although it is in motion. (Edit: Or is it?)
from rho.
The SwaggerSupport
trait is tasked with maintaining and rendering the documentation here in master and here in the swagger2.0 branch. @cencarnacion has submitted an excellent PR concerning swagger 2.0 which I hope to merge in the very near future, so its probably worth looking at that code from now on.
from rho.
Ok, I see it, and in particular I'm looking at org.http4s.rho.swagger.TypeBuilder
currently.
from rho.
Related Issues (20)
- Provide example using the Swagger UI Webjar HOT 1
- Got Error with http4s-scala-xml HOT 2
- NoSuchMethodError from rho 0.20.0-M1 HOT 2
- StringParser for value classes HOT 4
- Broken Links/URLs in `README.md` in branch `master` HOT 1
- Where is RhoService? HOT 2
- Feature Idea: Serving swagger in YAML
- Feature Idea: Customisable generic type names
- Is it possible to disable swagger.json endpoint and generate a plain json?
- Release v0.21.0 with swagger webjar implementation HOT 2
- Simple or-path produces incorrect tags HOT 1
- Getting 405 Method Not Allowed from combined routes HOT 3
- Demo example doesn't work HOT 1
- Non-class Scala types break TypeBuilder
- Logger Options in RhoRoutes
- Publish scala 3 artifacts HOT 3
- Getting 405 Method Not Allowed from combined routes with authentication
- Assembly doesn't like CollectionConverters
- Http4s, Scala, and main dependencies update HOT 3
- Maintainers wanted HOT 6
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 rho.