Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class {{{classname}}} {
{{/allParams}}

{{/hasParams}}
final path = '{{{path}}}'.replaceAll('{format}', 'json'){{#pathParams}}
final path = '{{{path}}}'{{#pathParams}}
.replaceAll('{' + '{{{baseName}}}' + '}', {{{paramName}}}.toString()){{/pathParams}};

Object postBody{{#bodyParam}} = {{{paramName}}}{{/bodyParam}};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/pet'.replaceAll('{format}', 'json');
final path = '/pet';

Object postBody = body;

Expand Down Expand Up @@ -94,7 +94,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}'.replaceAll('{format}', 'json')
final path = '/pet/{petId}'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down Expand Up @@ -166,7 +166,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: status');
}

final path = '/pet/findByStatus'.replaceAll('{format}', 'json');
final path = '/pet/findByStatus';

Object postBody;

Expand Down Expand Up @@ -244,7 +244,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: tags');
}

final path = '/pet/findByTags'.replaceAll('{format}', 'json');
final path = '/pet/findByTags';

Object postBody;

Expand Down Expand Up @@ -322,7 +322,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}'.replaceAll('{format}', 'json')
final path = '/pet/{petId}'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down Expand Up @@ -395,7 +395,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/pet'.replaceAll('{format}', 'json');
final path = '/pet';

Object postBody = body;

Expand Down Expand Up @@ -464,7 +464,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}'.replaceAll('{format}', 'json')
final path = '/pet/{petId}'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down Expand Up @@ -554,7 +554,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}/uploadImage'.replaceAll('{format}', 'json')
final path = '/pet/{petId}/uploadImage'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class StoreApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: orderId');
}

final path = '/store/order/{orderId}'.replaceAll('{format}', 'json')
final path = '/store/order/{orderId}'
.replaceAll('{' + 'orderId' + '}', orderId.toString());

Object postBody;
Expand Down Expand Up @@ -89,7 +89,7 @@ class StoreApi {
///
/// Note: This method returns the HTTP [Response].
Future<Response> getInventoryWithHttpInfo() async {
final path = '/store/inventory'.replaceAll('{format}', 'json');
final path = '/store/inventory';

Object postBody;

Expand Down Expand Up @@ -158,7 +158,7 @@ class StoreApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: orderId');
}

final path = '/store/order/{orderId}'.replaceAll('{format}', 'json')
final path = '/store/order/{orderId}'
.replaceAll('{' + 'orderId' + '}', orderId.toString());

Object postBody;
Expand Down Expand Up @@ -231,7 +231,7 @@ class StoreApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/store/order'.replaceAll('{format}', 'json');
final path = '/store/order';

Object postBody = body;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/user'.replaceAll('{format}', 'json');
final path = '/user';

Object postBody = body;

Expand Down Expand Up @@ -96,7 +96,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/user/createWithArray'.replaceAll('{format}', 'json');
final path = '/user/createWithArray';

Object postBody = body;

Expand Down Expand Up @@ -159,7 +159,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/user/createWithList'.replaceAll('{format}', 'json');
final path = '/user/createWithList';

Object postBody = body;

Expand Down Expand Up @@ -224,7 +224,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: username');
}

final path = '/user/{username}'.replaceAll('{format}', 'json')
final path = '/user/{username}'
.replaceAll('{' + 'username' + '}', username.toString());

Object postBody;
Expand Down Expand Up @@ -290,7 +290,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: username');
}

final path = '/user/{username}'.replaceAll('{format}', 'json')
final path = '/user/{username}'
.replaceAll('{' + 'username' + '}', username.toString());

Object postBody;
Expand Down Expand Up @@ -367,7 +367,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: password');
}

final path = '/user/login'.replaceAll('{format}', 'json');
final path = '/user/login';

Object postBody;

Expand Down Expand Up @@ -433,7 +433,7 @@ class UserApi {
///
/// Note: This method returns the HTTP [Response].
Future<Response> logoutUserWithHttpInfo() async {
final path = '/user/logout'.replaceAll('{format}', 'json');
final path = '/user/logout';

Object postBody;

Expand Down Expand Up @@ -499,7 +499,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: body');
}

final path = '/user/{username}'.replaceAll('{format}', 'json')
final path = '/user/{username}'
.replaceAll('{' + 'username' + '}', username.toString());

Object postBody = body;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: pet');
}

final path = '/pet'.replaceAll('{format}', 'json');
final path = '/pet';

Object postBody = pet;

Expand Down Expand Up @@ -101,7 +101,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}'.replaceAll('{format}', 'json')
final path = '/pet/{petId}'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down Expand Up @@ -173,7 +173,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: status');
}

final path = '/pet/findByStatus'.replaceAll('{format}', 'json');
final path = '/pet/findByStatus';

Object postBody;

Expand Down Expand Up @@ -251,7 +251,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: tags');
}

final path = '/pet/findByTags'.replaceAll('{format}', 'json');
final path = '/pet/findByTags';

Object postBody;

Expand Down Expand Up @@ -329,7 +329,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}'.replaceAll('{format}', 'json')
final path = '/pet/{petId}'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down Expand Up @@ -402,7 +402,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: pet');
}

final path = '/pet'.replaceAll('{format}', 'json');
final path = '/pet';

Object postBody = pet;

Expand Down Expand Up @@ -478,7 +478,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}'.replaceAll('{format}', 'json')
final path = '/pet/{petId}'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down Expand Up @@ -568,7 +568,7 @@ class PetApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: petId');
}

final path = '/pet/{petId}/uploadImage'.replaceAll('{format}', 'json')
final path = '/pet/{petId}/uploadImage'
.replaceAll('{' + 'petId' + '}', petId.toString());

Object postBody;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class StoreApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: orderId');
}

final path = '/store/order/{orderId}'.replaceAll('{format}', 'json')
final path = '/store/order/{orderId}'
.replaceAll('{' + 'orderId' + '}', orderId.toString());

Object postBody;
Expand Down Expand Up @@ -89,7 +89,7 @@ class StoreApi {
///
/// Note: This method returns the HTTP [Response].
Future<Response> getInventoryWithHttpInfo() async {
final path = '/store/inventory'.replaceAll('{format}', 'json');
final path = '/store/inventory';

Object postBody;

Expand Down Expand Up @@ -158,7 +158,7 @@ class StoreApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: orderId');
}

final path = '/store/order/{orderId}'.replaceAll('{format}', 'json')
final path = '/store/order/{orderId}'
.replaceAll('{' + 'orderId' + '}', orderId.toString());

Object postBody;
Expand Down Expand Up @@ -231,7 +231,7 @@ class StoreApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: order');
}

final path = '/store/order'.replaceAll('{format}', 'json');
final path = '/store/order';

Object postBody = order;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: user');
}

final path = '/user'.replaceAll('{format}', 'json');
final path = '/user';

Object postBody = user;

Expand Down Expand Up @@ -96,7 +96,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: user');
}

final path = '/user/createWithArray'.replaceAll('{format}', 'json');
final path = '/user/createWithArray';

Object postBody = user;

Expand Down Expand Up @@ -159,7 +159,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: user');
}

final path = '/user/createWithList'.replaceAll('{format}', 'json');
final path = '/user/createWithList';

Object postBody = user;

Expand Down Expand Up @@ -224,7 +224,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: username');
}

final path = '/user/{username}'.replaceAll('{format}', 'json')
final path = '/user/{username}'
.replaceAll('{' + 'username' + '}', username.toString());

Object postBody;
Expand Down Expand Up @@ -290,7 +290,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: username');
}

final path = '/user/{username}'.replaceAll('{format}', 'json')
final path = '/user/{username}'
.replaceAll('{' + 'username' + '}', username.toString());

Object postBody;
Expand Down Expand Up @@ -367,7 +367,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: password');
}

final path = '/user/login'.replaceAll('{format}', 'json');
final path = '/user/login';

Object postBody;

Expand Down Expand Up @@ -433,7 +433,7 @@ class UserApi {
///
/// Note: This method returns the HTTP [Response].
Future<Response> logoutUserWithHttpInfo() async {
final path = '/user/logout'.replaceAll('{format}', 'json');
final path = '/user/logout';

Object postBody;

Expand Down Expand Up @@ -499,7 +499,7 @@ class UserApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: user');
}

final path = '/user/{username}'.replaceAll('{format}', 'json')
final path = '/user/{username}'
.replaceAll('{' + 'username' + '}', username.toString());

Object postBody = user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AnotherFakeApi {
throw ApiException(HttpStatus.badRequest, 'Missing required param: modelClient');
}

final path = '/another-fake/dummy'.replaceAll('{format}', 'json');
final path = '/another-fake/dummy';

Object postBody = modelClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DefaultApi {

/// Performs an HTTP 'GET /foo' operation and returns the [Response].
Future<Response> fooGetWithHttpInfo() async {
final path = '/foo'.replaceAll('{format}', 'json');
final path = '/foo';

Object postBody;

Expand Down
Loading