You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/client/petstore/javascript-promise/README.md
+21-29Lines changed: 21 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# swagger-petstore
1
+
# swagger_petstore
2
2
3
-
SwaggerPetstore - JavaScript client for swagger-petstore
4
-
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \"\\
3
+
SwaggerPetstore - JavaScript client for swagger_petstore
4
+
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \"\\
5
5
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
6
6
7
7
- API version: 1.0.0
8
8
- Package version: 1.0.0
9
-
- Build date: 2016-06-17T15:45:49.945-04:00
9
+
- Build date: 2016-06-29T21:42:46.755+08:00
10
10
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
11
11
12
12
## Installation
@@ -21,7 +21,7 @@ please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.co
21
21
Then install it via:
22
22
23
23
```shell
24
-
npm install swagger-petstore --save
24
+
npm install swagger_petstore --save
25
25
```
26
26
27
27
#### git
@@ -51,29 +51,14 @@ Then include *bundle.js* in the HTML pages.
51
51
Please follow the [installation](#installation) instruction and execute the following JS code:
*SwaggerPetstore.FakeApi* | [**testCodeInjectEnd**](docs/FakeApi.md#testCodeInjectEnd) | **PUT** /fake | To test code injection =end
91
77
*SwaggerPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
78
+
*SwaggerPetstore.FakeApi* | [**testEnumQueryParameters**](docs/FakeApi.md#testEnumQueryParameters) | **GET** /fake | To test enum query parameters
92
79
*SwaggerPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
93
80
*SwaggerPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
94
81
*SwaggerPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
Copy file name to clipboardExpand all lines: samples/client/petstore/javascript-promise/docs/FakeApi.md
+91-1Lines changed: 91 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,53 @@ All URIs are relative to *http://petstore.swagger.io/v2*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
+
[**testCodeInjectEnd**](FakeApi.md#testCodeInjectEnd) | **PUT** /fake | To test code injection =end
7
8
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
9
+
[**testEnumQueryParameters**](FakeApi.md#testEnumQueryParameters) | **GET** /fake | To test enum query parameters
8
10
9
11
12
+
<aname="testCodeInjectEnd"></a>
13
+
# **testCodeInjectEnd**
14
+
> testCodeInjectEnd(opts)
15
+
16
+
To test code injection =end
17
+
18
+
### Example
19
+
```javascript
20
+
var SwaggerPetstore =require('swagger_petstore');
21
+
22
+
var apiInstance =newSwaggerPetstore.FakeApi();
23
+
24
+
var opts = {
25
+
'testCodeInjectEnd':"testCodeInjectEnd_example"// String | To test code injection =end
0 commit comments