mattetti / Weasel-Diesel

DSL to describe, document and test web services
MIT License
438 stars 21 forks source link

Using Weasel-Diesel for documentation only #15

Closed onsails closed 11 years ago

onsails commented 12 years ago

Hello,

We love how it generates docs but we prefer to implement APIs on the other software stack than ruby / rails. Is there a way of using Weasel-Diesel for api documentation but not for implementation? If I don't describe service.implementation block a command rake doc:services exits with an error DSL is missing the implementation block.

mattetti commented 12 years ago

That's a good point, the rake generation task only exists in wd_sinatra and that's why you are saying the error about missing implementation block. The task could probably be ported over to WD itself and require a source path for the API descriptions and an output path for the documentation. I don't quite have time for that at the moment, but patches are welcome if you want that done ASAP.

kamui commented 11 years ago

30 closes this. To generate docs:

$ weasel_diesel generate_doc <path to ruby source files>