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
|
||||||
*/
|
*/
|
||||||
class ApiClient {
|
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.
|
* The base URL against which to resolve every API call's (relative) path.
|
||||||
* @type {String}
|
* @type {String}
|
||||||
* @default http://petstore.swagger.io:80/v2
|
* @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.
|
* The authentication methods to be included for all API calls.
|
||||||
|
@ -28,13 +28,18 @@ import querystring from "querystring";
|
|||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
class ApiClient {
|
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.
|
* The base URL against which to resolve every API call's (relative) path.
|
||||||
* @type {String}
|
* @type {String}
|
||||||
* @default http://petstore.swagger.io:80/v2
|
* @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.
|
* The authentication methods to be included for all API calls.
|
||||||
|
@ -184,6 +184,7 @@ removeFieldLabelPrefix forParsing prefix =
|
|||||||
, (".", "'Period")
|
, (".", "'Period")
|
||||||
, ("/", "'Slash")
|
, ("/", "'Slash")
|
||||||
, (":", "'Colon")
|
, (":", "'Colon")
|
||||||
|
, (";", "'Semicolon")
|
||||||
, ("{", "'Left_Curly_Bracket")
|
, ("{", "'Left_Curly_Bracket")
|
||||||
, ("|", "'Pipe")
|
, ("|", "'Pipe")
|
||||||
, ("<", "'LessThan")
|
, ("<", "'LessThan")
|
||||||
|
@ -154,6 +154,7 @@ removeFieldLabelPrefix forParsing prefix =
|
|||||||
, (".", "'Period")
|
, (".", "'Period")
|
||||||
, ("/", "'Slash")
|
, ("/", "'Slash")
|
||||||
, (":", "'Colon")
|
, (":", "'Colon")
|
||||||
|
, (";", "'Semicolon")
|
||||||
, ("{", "'Left_Curly_Bracket")
|
, ("{", "'Left_Curly_Bracket")
|
||||||
, ("|", "'Pipe")
|
, ("|", "'Pipe")
|
||||||
, ("<", "'LessThan")
|
, ("<", "'LessThan")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user