This is make API Tomogram
config/application.rb
require 'tomograph'
For gem needed by a drafter generate and save yaml
file, and then turn it on config.
drafter doc/api.apib -o doc/api.yaml
Tomograph.configure do |config|
config.documentation = 'doc/api.yaml'
end
Then you can use the API tomogram by using the following call:
Tomograph::Tomogram.json
API tomogram return to json format.
String with yaml from drafter.
Default empty String. This is prefix for url if in docimentation URI short .
The gem is available as open source under the terms of the MIT License.