class R2OAS::Schema::V3::InfoObject
Public Instance Methods
to_doc()
click to toggle source
# File lib/r2-oas/schema/v3/object/from_routes/info_object.rb, line 9 def to_doc create_doc doc end
Private Instance Methods
create_doc()
click to toggle source
# File lib/r2-oas/schema/v3/object/from_routes/info_object.rb, line 16 def create_doc result = { 'title' => 'OAS API Document Title', 'description' => "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", 'termsOfService' => 'http://swagger.io/terms/', # Contact Object 'contact' => { 'name' => '', 'url' => '' }, # License Object 'license' => { 'name' => '', 'url' => '' }, 'version' => '1.0.0' } doc.merge!(result) end