mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Merge pull request #2008 from wing328/license_template
[Ruby] add API info as file header to ruby templates
This commit is contained in:
commit
8285dea113
@ -129,6 +129,9 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
|||||||
if (info.getVersion() != null) {
|
if (info.getVersion() != null) {
|
||||||
config.additionalProperties().put("version", info.getVersion());
|
config.additionalProperties().put("version", info.getVersion());
|
||||||
}
|
}
|
||||||
|
if (info.getTermsOfService() != null) {
|
||||||
|
config.additionalProperties().put("termsOfService", info.getTermsOfService());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder hostBuilder = new StringBuilder();
|
StringBuilder hostBuilder = new StringBuilder();
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
require "uri"
|
require "uri"
|
||||||
|
|
||||||
module {{moduleName}}
|
module {{moduleName}}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
module {{moduleName}}
|
module {{moduleName}}
|
||||||
class ApiError < StandardError
|
class ApiError < StandardError
|
||||||
attr_reader :code, :response_headers, :response_body
|
attr_reader :code, :response_headers, :response_body
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
{{#appName}}{{{appName}}}
|
||||||
|
|
||||||
|
{{/appName}}
|
||||||
|
{{#appDescription}}{{{appDescription}}}
|
||||||
|
|
||||||
|
{{/appDescription}}
|
||||||
|
{{#version}}OpenAPI spec version: {{version}}{{/version}}
|
||||||
|
{{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
{{#licenseInfo}}
|
||||||
|
License: {{{licenseInfo}}}
|
||||||
|
{{#licenseUrl}}{{licenseUrl}}{{/licenseUrl}}
|
||||||
|
|
||||||
|
{{/licenseInfo}}
|
||||||
|
{{#termsOfService}}
|
||||||
|
Terms of Service: {{{termsOfService}}}
|
||||||
|
{{/termsOfService}}
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
# Common files
|
# Common files
|
||||||
require '{{gemName}}/api_client'
|
require '{{gemName}}/api_client'
|
||||||
require '{{gemName}}/api_error'
|
require '{{gemName}}/api_error'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
module {{moduleName}}{{#models}}{{#model}}{{#description}}
|
module {{moduleName}}{{#models}}{{#model}}{{#description}}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
=begin
|
||||||
|
{{> api_info}}
|
||||||
|
=end
|
||||||
|
|
||||||
module {{moduleName}}
|
module {{moduleName}}
|
||||||
VERSION = "{{gemVersion}}"
|
VERSION = "{{gemVersion}}"
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
# Common files
|
# Common files
|
||||||
require 'petstore/api_client'
|
require 'petstore/api_client'
|
||||||
require 'petstore/api_error'
|
require 'petstore/api_error'
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require "uri"
|
require "uri"
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require "uri"
|
require "uri"
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require "uri"
|
require "uri"
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
class ApiError < StandardError
|
class ApiError < StandardError
|
||||||
attr_reader :code, :response_headers, :response_body
|
attr_reader :code, :response_headers, :response_body
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
module Petstore
|
module Petstore
|
||||||
VERSION = "1.0.0"
|
VERSION = "1.0.0"
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
=begin
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
|
||||||
|
License: Apache 2.0
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
Terms of Service: http://swagger.io/terms/
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
Loading…
Reference in New Issue
Block a user