[Python] Add "servers" support in path, operation (#2052)

* add servers to path, operation

* add path/operation server support to python client

* update python samples

* fix index

* fix python code style
This commit is contained in:
William Cheng
2019-02-08 11:48:37 +08:00
committed by GitHub
parent 7cee2b62e4
commit 36fa7102dd
24 changed files with 170 additions and 64 deletions

View File

@@ -22,7 +22,7 @@ Add a new pet to the store
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -72,7 +72,7 @@ Deletes a pet
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -126,7 +126,7 @@ Multiple status values can be provided with comma separated strings
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -179,7 +179,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -232,7 +232,7 @@ Returns a single pet
### Example
* Api Key Authentication (api_key):
* Api Key Authentication (api_key):
```python
from __future__ import print_function
import time
@@ -285,7 +285,7 @@ Update an existing pet
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -335,7 +335,7 @@ Updates a pet in the store with form data
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -389,7 +389,7 @@ uploads an image
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time
@@ -444,7 +444,7 @@ uploads an image (required)
### Example
* OAuth Authentication (petstore_auth):
* OAuth Authentication (petstore_auth):
```python
from __future__ import print_function
import time