minor fix to ts angularjs bin script

This commit is contained in:
wing328 2017-08-28 18:36:37 +08:00
parent 14f0375bdd
commit ccfe7f5cbf
13 changed files with 117 additions and 35 deletions

View File

@ -26,6 +26,6 @@ fi
# if you've executed sbt assembly previously it will use that instead. # if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l typescript-angularjs -o samples/client/petstore/typescript-angular" ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l typescript-angularjs -o samples/client/petstore/typescript-angularjs"
java $JAVA_OPTS -jar $executable $ags java $JAVA_OPTS -jar $executable $ags

View File

@ -829,10 +829,9 @@
<module>samples/client/petstore/typescript-fetch/tests/default</module> <module>samples/client/petstore/typescript-fetch/tests/default</module>
<module>samples/client/petstore/typescript-node/npm</module> <module>samples/client/petstore/typescript-node/npm</module>
<!-- comment out due to github rate limit error <!-- comment out due to github rate limit error
<module>samples/client/petstore/typescript-angular</module>--> <module>samples/client/petstore/typescript-angularjs</module>-->
<!-- comment out due to error `npm run build` <!-- comment out due to error `npm run build`
<module>samples/client/petstore/typescript-jquery/npm</module>--> <module>samples/client/petstore/typescript-jquery/npm</module>-->
<module>samples/client/petstore/typescript-angularjs</module>
<module>samples/client/petstore/typescript-angular-v2/npm</module> <module>samples/client/petstore/typescript-angular-v2/npm</module>
<module>samples/client/petstore/typescript-angular-v4/npm</module> <module>samples/client/petstore/typescript-angular-v4/npm</module>
<module>samples/client/petstore/swift3/default/SwaggerClientTests</module> <module>samples/client/petstore/swift3/default/SwaggerClientTests</module>

View File

@ -1 +1 @@
2.2.3 2.3.0-SNAPSHOT

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -31,11 +31,15 @@ export class PetApi {
* @summary Add a new pet to the store * @summary Add a new pet to the store
* @param body Pet object that needs to be added to the store * @param body Pet object that needs to be added to the store
*/ */
public addPet (body?: models.Pet, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public addPet (body: models.Pet, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/pet'; const localVarPath = this.basePath + '/pet';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling addPet.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'POST', method: 'POST',
url: localVarPath, url: localVarPath,
@ -86,11 +90,15 @@ export class PetApi {
* @summary Finds Pets by status * @summary Finds Pets by status
* @param status Status values that need to be considered for filter * @param status Status values that need to be considered for filter
*/ */
public findPetsByStatus (status?: Array<string>, extraHttpRequestParams?: any ) : ng.IHttpPromise<Array<models.Pet>> { public findPetsByStatus (status: Array<string>, extraHttpRequestParams?: any ) : ng.IHttpPromise<Array<models.Pet>> {
const localVarPath = this.basePath + '/pet/findByStatus'; const localVarPath = this.basePath + '/pet/findByStatus';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'status' is not null or undefined
if (status === null || status === undefined) {
throw new Error('Required parameter status was null or undefined when calling findPetsByStatus.');
}
if (status !== undefined) { if (status !== undefined) {
queryParameters['status'] = status; queryParameters['status'] = status;
} }
@ -113,11 +121,15 @@ export class PetApi {
* @summary Finds Pets by tags * @summary Finds Pets by tags
* @param tags Tags to filter by * @param tags Tags to filter by
*/ */
public findPetsByTags (tags?: Array<string>, extraHttpRequestParams?: any ) : ng.IHttpPromise<Array<models.Pet>> { public findPetsByTags (tags: Array<string>, extraHttpRequestParams?: any ) : ng.IHttpPromise<Array<models.Pet>> {
const localVarPath = this.basePath + '/pet/findByTags'; const localVarPath = this.basePath + '/pet/findByTags';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'tags' is not null or undefined
if (tags === null || tags === undefined) {
throw new Error('Required parameter tags was null or undefined when calling findPetsByTags.');
}
if (tags !== undefined) { if (tags !== undefined) {
queryParameters['tags'] = tags; queryParameters['tags'] = tags;
} }
@ -136,9 +148,9 @@ export class PetApi {
return this.$http(httpRequestParams); return this.$http(httpRequestParams);
} }
/** /**
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions * Returns a single pet
* @summary Find pet by ID * @summary Find pet by ID
* @param petId ID of pet that needs to be fetched * @param petId ID of pet to return
*/ */
public getPetById (petId: number, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.Pet> { public getPetById (petId: number, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.Pet> {
const localVarPath = this.basePath + '/pet/{petId}' const localVarPath = this.basePath + '/pet/{petId}'
@ -168,11 +180,15 @@ export class PetApi {
* @summary Update an existing pet * @summary Update an existing pet
* @param body Pet object that needs to be added to the store * @param body Pet object that needs to be added to the store
*/ */
public updatePet (body?: models.Pet, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public updatePet (body: models.Pet, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/pet'; const localVarPath = this.basePath + '/pet';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling updatePet.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'PUT', method: 'PUT',
url: localVarPath, url: localVarPath,
@ -194,7 +210,7 @@ export class PetApi {
* @param name Updated name of the pet * @param name Updated name of the pet
* @param status Updated status of the pet * @param status Updated status of the pet
*/ */
public updatePetWithForm (petId: string, name?: string, status?: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public updatePetWithForm (petId: number, name?: string, status?: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/pet/{petId}' const localVarPath = this.basePath + '/pet/{petId}'
.replace('{' + 'petId' + '}', String(petId)); .replace('{' + 'petId' + '}', String(petId));
@ -233,7 +249,7 @@ export class PetApi {
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
* @param file file to upload * @param file file to upload
*/ */
public uploadFile (petId: number, additionalMetadata?: string, file?: any, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public uploadFile (petId: number, additionalMetadata?: string, file?: any, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.ApiResponse> {
const localVarPath = this.basePath + '/pet/{petId}/uploadImage' const localVarPath = this.basePath + '/pet/{petId}/uploadImage'
.replace('{' + 'petId' + '}', String(petId)); .replace('{' + 'petId' + '}', String(petId));

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -81,7 +81,7 @@ export class StoreApi {
* @summary Find purchase order by ID * @summary Find purchase order by ID
* @param orderId ID of pet that needs to be fetched * @param orderId ID of pet that needs to be fetched
*/ */
public getOrderById (orderId: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.Order> { public getOrderById (orderId: number, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.Order> {
const localVarPath = this.basePath + '/store/order/{orderId}' const localVarPath = this.basePath + '/store/order/{orderId}'
.replace('{' + 'orderId' + '}', String(orderId)); .replace('{' + 'orderId' + '}', String(orderId));
@ -109,11 +109,15 @@ export class StoreApi {
* @summary Place an order for a pet * @summary Place an order for a pet
* @param body order placed for purchasing the pet * @param body order placed for purchasing the pet
*/ */
public placeOrder (body?: models.Order, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.Order> { public placeOrder (body: models.Order, extraHttpRequestParams?: any ) : ng.IHttpPromise<models.Order> {
const localVarPath = this.basePath + '/store/order'; const localVarPath = this.basePath + '/store/order';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling placeOrder.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'POST', method: 'POST',
url: localVarPath, url: localVarPath,

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -31,11 +31,15 @@ export class UserApi {
* @summary Create user * @summary Create user
* @param body Created user object * @param body Created user object
*/ */
public createUser (body?: models.User, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public createUser (body: models.User, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/user'; const localVarPath = this.basePath + '/user';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling createUser.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'POST', method: 'POST',
url: localVarPath, url: localVarPath,
@ -55,11 +59,15 @@ export class UserApi {
* @summary Creates list of users with given input array * @summary Creates list of users with given input array
* @param body List of user object * @param body List of user object
*/ */
public createUsersWithArrayInput (body?: Array<models.User>, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public createUsersWithArrayInput (body: Array<models.User>, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/user/createWithArray'; const localVarPath = this.basePath + '/user/createWithArray';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'POST', method: 'POST',
url: localVarPath, url: localVarPath,
@ -79,11 +87,15 @@ export class UserApi {
* @summary Creates list of users with given input array * @summary Creates list of users with given input array
* @param body List of user object * @param body List of user object
*/ */
public createUsersWithListInput (body?: Array<models.User>, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public createUsersWithListInput (body: Array<models.User>, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/user/createWithList'; const localVarPath = this.basePath + '/user/createWithList';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'POST', method: 'POST',
url: localVarPath, url: localVarPath,
@ -160,11 +172,19 @@ export class UserApi {
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
*/ */
public loginUser (username?: string, password?: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<string> { public loginUser (username: string, password: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<string> {
const localVarPath = this.basePath + '/user/login'; const localVarPath = this.basePath + '/user/login';
let queryParameters: any = {}; let queryParameters: any = {};
let headerParams: any = (<any>Object).assign({}, this.defaultHeaders); let headerParams: any = (<any>Object).assign({}, this.defaultHeaders);
// verify required parameter 'username' is not null or undefined
if (username === null || username === undefined) {
throw new Error('Required parameter username was null or undefined when calling loginUser.');
}
// verify required parameter 'password' is not null or undefined
if (password === null || password === undefined) {
throw new Error('Required parameter password was null or undefined when calling loginUser.');
}
if (username !== undefined) { if (username !== undefined) {
queryParameters['username'] = username; queryParameters['username'] = username;
} }
@ -214,7 +234,7 @@ export class UserApi {
* @param username name that need to be deleted * @param username name that need to be deleted
* @param body Updated user object * @param body Updated user object
*/ */
public updateUser (username: string, body?: models.User, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { public updateUser (username: string, body: models.User, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
const localVarPath = this.basePath + '/user/{username}' const localVarPath = this.basePath + '/user/{username}'
.replace('{' + 'username' + '}', String(username)); .replace('{' + 'username' + '}', String(username));
@ -224,6 +244,10 @@ export class UserApi {
if (username === null || username === undefined) { if (username === null || username === undefined) {
throw new Error('Required parameter username was null or undefined when calling updateUser.'); throw new Error('Required parameter username was null or undefined when calling updateUser.');
} }
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling updateUser.');
}
let httpRequestParams: ng.IRequestConfig = { let httpRequestParams: ng.IRequestConfig = {
method: 'PUT', method: 'PUT',
url: localVarPath, url: localVarPath,

View File

@ -0,0 +1,23 @@
/**
* Swagger Petstore
* 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.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* 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.
*/
import * as models from './models';
/**
* Describes the result of uploading an image resource
*/
export interface ApiResponse {
"code"?: number;
"type"?: string;
"message"?: string;
}

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -12,6 +12,9 @@
import * as models from './models'; import * as models from './models';
/**
* A category for a pet
*/
export interface Category { export interface Category {
"id"?: number; "id"?: number;
"name"?: string; "name"?: string;

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -12,6 +12,9 @@
import * as models from './models'; import * as models from './models';
/**
* An order for a pets from the pet store
*/
export interface Order { export interface Order {
"id"?: number; "id"?: number;
"petId"?: number; "petId"?: number;

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -12,6 +12,9 @@
import * as models from './models'; import * as models from './models';
/**
* A pet for sale in the pet store
*/
export interface Pet { export interface Pet {
"id"?: number; "id"?: number;
"category"?: models.Category; "category"?: models.Category;

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -12,6 +12,9 @@
import * as models from './models'; import * as models from './models';
/**
* A tag for a pet
*/
export interface Tag { export interface Tag {
"id"?: number; "id"?: number;
"name"?: string; "name"?: string;

View File

@ -1,9 +1,9 @@
/** /**
* Swagger Petstore * 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 * 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.
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git * https://github.com/swagger-api/swagger-codegen.git
@ -12,6 +12,9 @@
import * as models from './models'; import * as models from './models';
/**
* A User who is purchasing from the pet store
*/
export interface User { export interface User {
"id"?: number; "id"?: number;
"username"?: string; "username"?: string;

View File

@ -1,3 +1,4 @@
export * from './ApiResponse';
export * from './Category'; export * from './Category';
export * from './Order'; export * from './Order';
export * from './Pet'; export * from './Pet';