Earlier quoted context omitted.
Hey, thanks for the tip. ReadMe.io cofounder here, happy to answer any questions about my service or API specs in general. ReadMe.io currently focuses more on the "front end" of the API. We can ingest in-line comments made with the apiDoc.js [1] standard, and then use that description to build an API explorer and reference docs automatically. We like apiDoc because of how concise the comments are, and because they ar…
I like apiDoc, too, and I spent a few days adding those comments to my code. However, it's been months now, and the GitHub Sync section still says "temporarily disabled". Is this feature really done? When can I use it? I'm a bootstrapper and understand testing features by pretending they exist, but it's been a pretty long time...
Ask HN: What's the best way to write an API spec?
31–40 of 58 posts
Re: Ask HN: What's the best way to write an API spec?
#32I guess I'll take this opportunity to plug my own little tool for this. I use Swagger [1] and more specifically Swagger UI [2] to generate interactive web-based documentation like the sample at [3]. But rather than relying upon source code annotations to have swagger auto-generate the documentation, or hand-writing swagger's verbose JSON structure, I created a little DSL for it as demonstrated at [4] and available on…
Initially we considered Apiary, but we wanted more flexibility and preferred to host things ourselves. And the fact that our documentation is generated automatically from the code via grape-swagger is a game changer.
Re: Ask HN: What's the best way to write an API spec?
#33You don't need any special tools to do that although apiary comes to mind as something worthwhile.
Re: Ask HN: What's the best way to write an API spec?
#34Re: Ask HN: What's the best way to write an API spec?
#35There also exist an opens source project that has Swagger at its core called a127 (https://github.com/apigee-127/a127-documentation/wiki) that allows you to build enterprise-class APIs in Node.js locally and deploy to any PaaS where you can run a node app.
Disclaimer: I work with a127 project.
Re: Ask HN: What's the best way to write an API spec?
#36Re: Ask HN: What's the best way to write an API spec?
#37We tried a lot of options at Lavaboom (including apiary, readme.io, swagger, etc) and ended up using Slate: https://github.com/tripit/slate
Re: Ask HN: What's the best way to write an API spec?
#38Re: Ask HN: What's the best way to write an API spec?
#392) Swagger is an older option that is quite verbose but has a lot of good tooling support.
3) A third tool that is pretty decent is API blueprint.
Disclosure: I did work on an open source swagger-raml converter about four months ago.