[python] : Make example code snippet compilable (#3148)

* feat(python): Making example compilable

* feat(python): Updating pet project

* feat(python): Updating comments

* feat(documentation): Fixing comments style

* feat(documentation): Updating documentation

* feat(documentation): Fixing comments style
This commit is contained in:
Sai Giridhar P
2019-06-28 15:23:25 +05:30
committed by William Cheng
parent a41448ab9c
commit 6578cef260
31 changed files with 262 additions and 152 deletions

View File

@@ -52,7 +52,9 @@ from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
# Defining host is optional and default to http://petstore.swagger.io:80/v2
configuration.host = "http://petstore.swagger.io:80/v2"
# Create an instance of the API class
api_instance = petstore_api.AnotherFakeApi(petstore_api.ApiClient(configuration))
body = petstore_api.Client() # Client | client model