#!/usr/bin/env ruby require "bundler/setup" Bundler.require DocRaptor.configure do |dr| dr.username = "YOUR_API_KEY_HERE" dr.debugging = true end doc_api = DocRaptor::ClientApi.new response = doc_api.create_doc(test: true, document_content: "Swagger Ruby", name: "swagger-ruby.pdf", document_type: "pdf")