Sha256: 954d4223141b4959b3ebd6eb919dd1ab05225d2e2925e8827624573a81382a2a
Contents?: true
Size: 517 Bytes
Versions: 7
Compression:
Stored size: 517 Bytes
Contents
module SwaggerYard class Info def to_h { "title" => SwaggerYard.config.title, "description" => SwaggerYard.config.description, "version" => SwaggerYard.config.api_version } end end class Swagger def to_h { "swagger" => "2.0", "info" => Info.new.to_h, "host" => URI(SwaggerYard.config.api_base_path).host, "basePath" => URI(SwaggerYard.config.api_base_path).request_uri }.merge(ResourceListing.all.to_h) end end end
Version data entries
7 entries across 7 versions & 1 rubygems