forked from loafle/openapi-generator-original
76 lines
2.9 KiB
JavaScript
76 lines
2.9 KiB
JavaScript
/**
|
|
* Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r
|
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
|
|
*
|
|
* OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
|
|
* Contact: apiteam@swagger.io *_/ ' \" =end -- \\r\\n \\n \\r
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* Do not edit the class manually.
|
|
*
|
|
*/
|
|
|
|
(function(factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
// AMD. Register as an anonymous module.
|
|
define(['ApiClient', 'model/ModelReturn', 'api/FakeApi'], factory);
|
|
} else if (typeof module === 'object' && module.exports) {
|
|
// CommonJS-like environments that support module.exports, like Node.
|
|
module.exports = factory(require('./ApiClient'), require('./model/ModelReturn'), require('./api/FakeApi'));
|
|
}
|
|
}(function(ApiClient, ModelReturn, FakeApi) {
|
|
'use strict';
|
|
|
|
/**
|
|
* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters_______end______.<br>
|
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
* <p>
|
|
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
|
|
* <pre>
|
|
* var SwaggerPetstoreEndRnNR = require('index'); // See note below*.
|
|
* var xxxSvc = new SwaggerPetstoreEndRnNR.XxxApi(); // Allocate the API class we're going to use.
|
|
* var yyyModel = new SwaggerPetstoreEndRnNR.Yyy(); // Construct a model instance.
|
|
* yyyModel.someProperty = 'someValue';
|
|
* ...
|
|
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
|
|
* ...
|
|
* </pre>
|
|
* <em>*NOTE: For a top-level AMD script, use require(['index'], function(){...})
|
|
* and put the application logic within the callback function.</em>
|
|
* </p>
|
|
* <p>
|
|
* A non-AMD browser application (discouraged) might do something like this:
|
|
* <pre>
|
|
* var xxxSvc = new SwaggerPetstoreEndRnNR.XxxApi(); // Allocate the API class we're going to use.
|
|
* var yyy = new SwaggerPetstoreEndRnNR.Yyy(); // Construct a model instance.
|
|
* yyyModel.someProperty = 'someValue';
|
|
* ...
|
|
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
|
|
* ...
|
|
* </pre>
|
|
* </p>
|
|
* @module index
|
|
* @version 1.0.0 *_/ =end -- \r\n \n \r
|
|
*/
|
|
var exports = {
|
|
/**
|
|
* The ApiClient constructor.
|
|
* @property {module:ApiClient}
|
|
*/
|
|
ApiClient: ApiClient,
|
|
/**
|
|
* The ModelReturn model constructor.
|
|
* @property {module:model/ModelReturn}
|
|
*/
|
|
ModelReturn: ModelReturn,
|
|
/**
|
|
* The FakeApi service constructor.
|
|
* @property {module:api/FakeApi}
|
|
*/
|
|
FakeApi: FakeApi
|
|
};
|
|
|
|
return exports;
|
|
}));
|