mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-13 08:31:19 +00:00
87 lines
3.3 KiB
JavaScript
87 lines
3.3 KiB
JavaScript
/**
|
|
* Swagger Petstore ' \" =end
|
|
* 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
|
|
* Contact: apiteam@swagger.io ' \" =end
|
|
*
|
|
* 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.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
(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 SwaggerPetstoreEnd = require('index'); // See note below*.
|
|
* var xxxSvc = new SwaggerPetstoreEnd.XxxApi(); // Allocate the API class we're going to use.
|
|
* var yyyModel = new SwaggerPetstoreEnd.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 SwaggerPetstoreEnd.XxxApi(); // Allocate the API class we're going to use.
|
|
* var yyy = new SwaggerPetstoreEnd.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
|
|
*/
|
|
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;
|
|
}));
|