I’ve been working on something similar with GraphQL! It turns out to be more strongly typed and actually more useful than Swagger in many cases. Read about the project here:
- Discourse in GraphQL: https://medium.com/apollo-stack/discourse-in-graphql-part-1-ee1ffd8a22df#.ao9llqmvz
- GraphQL vs. REST documentation: https://medium.com/apollo-stack/will-graphql-replace-rest-documentation-f1a55092ef9d#.w2xbx1q9i
In fact, I just made this post from an app I wrote using my API!