forked from loafle/openapi-generator-original
update samples
This commit is contained in:
parent
538f12c36d
commit
1d934643fd
@ -28,13 +28,18 @@ import querystring from "querystring";
|
||||
* @class
|
||||
*/
|
||||
class ApiClient {
|
||||
constructor() {
|
||||
/**
|
||||
* The base URL against which to resolve every API call's (relative) path.
|
||||
* Overrides the default value set in spec file if present
|
||||
* @param {String} basePath
|
||||
*/
|
||||
constructor(basePath = 'http://petstore.swagger.io:80/v2') {
|
||||
/**
|
||||
* The base URL against which to resolve every API call's (relative) path.
|
||||
* @type {String}
|
||||
* @default http://petstore.swagger.io:80/v2
|
||||
*/
|
||||
this.basePath = 'http://petstore.swagger.io:80/v2'.replace(/\/+$/, '');
|
||||
this.basePath = basePath.replace(/\/+$/, '');
|
||||
|
||||
/**
|
||||
* The authentication methods to be included for all API calls.
|
||||
|
@ -28,13 +28,18 @@ import querystring from "querystring";
|
||||
* @class
|
||||
*/
|
||||
class ApiClient {
|
||||
constructor() {
|
||||
/**
|
||||
* The base URL against which to resolve every API call's (relative) path.
|
||||
* Overrides the default value set in spec file if present
|
||||
* @param {String} basePath
|
||||
*/
|
||||
constructor(basePath = 'http://petstore.swagger.io:80/v2') {
|
||||
/**
|
||||
* The base URL against which to resolve every API call's (relative) path.
|
||||
* @type {String}
|
||||
* @default http://petstore.swagger.io:80/v2
|
||||
*/
|
||||
this.basePath = 'http://petstore.swagger.io:80/v2'.replace(/\/+$/, '');
|
||||
this.basePath = basePath.replace(/\/+$/, '');
|
||||
|
||||
/**
|
||||
* The authentication methods to be included for all API calls.
|
||||
|
@ -184,6 +184,7 @@ removeFieldLabelPrefix forParsing prefix =
|
||||
, (".", "'Period")
|
||||
, ("/", "'Slash")
|
||||
, (":", "'Colon")
|
||||
, (";", "'Semicolon")
|
||||
, ("{", "'Left_Curly_Bracket")
|
||||
, ("|", "'Pipe")
|
||||
, ("<", "'LessThan")
|
||||
|
@ -154,6 +154,7 @@ removeFieldLabelPrefix forParsing prefix =
|
||||
, (".", "'Period")
|
||||
, ("/", "'Slash")
|
||||
, (":", "'Colon")
|
||||
, (";", "'Semicolon")
|
||||
, ("{", "'Left_Curly_Bracket")
|
||||
, ("|", "'Pipe")
|
||||
, ("<", "'LessThan")
|
||||
|
Loading…
x
Reference in New Issue
Block a user