mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
This reverts commit 54f5d73ee2
.
This commit is contained in:
parent
54f5d73ee2
commit
879149bb69
@ -32,7 +32,7 @@ npm install {{{projectName}}} --save
|
||||
```
|
||||
|
||||
#### git
|
||||
|
||||
#
|
||||
If the library is hosted at a git repository, e.g.
|
||||
https://github.com/{{#gitUserId}}{{.}}{{/gitUserId}}{{^gitUserId}}YOUR_USERNAME{{/gitUserId}}/{{#gitRepoId}}{{.}}{{/gitRepoId}}{{^gitRepoId}}{{projectName}}{{/gitRepoId}}
|
||||
then install it via:
|
||||
@ -103,31 +103,6 @@ api.{{{operationId}}}({{#allParams}}{{#required}}{{{paramName}}}{{#vendorExtensi
|
||||
{{/usePromises}}{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}}
|
||||
```
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader:
|
||||
|
||||
1. Add `imports-loader` package:
|
||||
|
||||
```bash
|
||||
npm install --save-dev imports-loader
|
||||
```
|
||||
2. Add the following sections to your webpack config (replace `MY_API_CLIENT_NAME` with your module name):
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /MY_API_CLIENT_NAME[\/\\]+.*\.js$/,
|
||||
use: 'imports-loader?define=>false'
|
||||
}
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *{{basePath}}*
|
||||
|
@ -32,7 +32,7 @@ npm install {{{projectName}}} --save
|
||||
```
|
||||
|
||||
#### git
|
||||
|
||||
#
|
||||
If the library is hosted at a git repository, e.g.
|
||||
https://github.com/{{#gitUserId}}{{.}}{{/gitUserId}}{{^gitUserId}}YOUR_USERNAME{{/gitUserId}}/{{#gitRepoId}}{{.}}{{/gitRepoId}}{{^gitRepoId}}{{projectName}}{{/gitRepoId}}
|
||||
then install it via:
|
||||
@ -103,31 +103,6 @@ api.{{{operationId}}}({{#allParams}}{{#required}}{{{paramName}}}{{#vendorExtensi
|
||||
{{/usePromises}}{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}}
|
||||
```
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader:
|
||||
|
||||
1. Add `imports-loader` package:
|
||||
|
||||
```bash
|
||||
npm install --save-dev imports-loader
|
||||
```
|
||||
2. Add the following sections to your webpack config (replace `MY_API_CLIENT_NAME` with your module name):
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /MY_API_CLIENT_NAME[\/\\]+.*\.js$/,
|
||||
use: 'imports-loader?define=>false'
|
||||
}
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *{{basePath}}*
|
||||
|
@ -24,7 +24,7 @@ npm install swagger_petstore --save
|
||||
```
|
||||
|
||||
#### git
|
||||
|
||||
#
|
||||
If the library is hosted at a git repository, e.g.
|
||||
https://github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
then install it via:
|
||||
@ -69,31 +69,6 @@ api.fakeOuterBooleanSerialize(opts, callback);
|
||||
|
||||
```
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader:
|
||||
|
||||
1. Add `imports-loader` package:
|
||||
|
||||
```bash
|
||||
npm install --save-dev imports-loader
|
||||
```
|
||||
2. Add the following sections to your webpack config (replace `MY_API_CLIENT_NAME` with your module name):
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /MY_API_CLIENT_NAME[\/\\]+.*\.js$/,
|
||||
use: 'imports-loader?define=>false'
|
||||
}
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
@ -24,7 +24,7 @@ npm install swagger_petstore --save
|
||||
```
|
||||
|
||||
#### git
|
||||
|
||||
#
|
||||
If the library is hosted at a git repository, e.g.
|
||||
https://github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
then install it via:
|
||||
@ -66,31 +66,6 @@ api.fakeOuterBooleanSerialize(opts).then(function(data) {
|
||||
|
||||
```
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader:
|
||||
|
||||
1. Add `imports-loader` package:
|
||||
|
||||
```bash
|
||||
npm install --save-dev imports-loader
|
||||
```
|
||||
2. Add the following sections to your webpack config (replace `MY_API_CLIENT_NAME` with your module name):
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /MY_API_CLIENT_NAME[\/\\]+.*\.js$/,
|
||||
use: 'imports-loader?define=>false'
|
||||
}
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
@ -24,7 +24,7 @@ npm install swagger_petstore --save
|
||||
```
|
||||
|
||||
#### git
|
||||
|
||||
#
|
||||
If the library is hosted at a git repository, e.g.
|
||||
https://github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
then install it via:
|
||||
@ -66,31 +66,6 @@ api.fakeOuterBooleanSerialize(opts).then(function(data) {
|
||||
|
||||
```
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader:
|
||||
|
||||
1. Add `imports-loader` package:
|
||||
|
||||
```bash
|
||||
npm install --save-dev imports-loader
|
||||
```
|
||||
2. Add the following sections to your webpack config (replace `MY_API_CLIENT_NAME` with your module name):
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /MY_API_CLIENT_NAME[\/\\]+.*\.js$/,
|
||||
use: 'imports-loader?define=>false'
|
||||
}
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
@ -24,7 +24,7 @@ npm install swagger_petstore --save
|
||||
```
|
||||
|
||||
#### git
|
||||
|
||||
#
|
||||
If the library is hosted at a git repository, e.g.
|
||||
https://github.com/GIT_USER_ID/GIT_REPO_ID
|
||||
then install it via:
|
||||
@ -69,31 +69,6 @@ api.fakeOuterBooleanSerialize(opts, callback);
|
||||
|
||||
```
|
||||
|
||||
### Webpack Configuration
|
||||
|
||||
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader:
|
||||
|
||||
1. Add `imports-loader` package:
|
||||
|
||||
```bash
|
||||
npm install --save-dev imports-loader
|
||||
```
|
||||
2. Add the following sections to your webpack config (replace `MY_API_CLIENT_NAME` with your module name):
|
||||
|
||||
```javascript
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /MY_API_CLIENT_NAME[\/\\]+.*\.js$/,
|
||||
use: 'imports-loader?define=>false'
|
||||
}
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
Loading…
Reference in New Issue
Block a user