[Python] fix api file name & api var name (#11051)

* fix api filename

* fix PythonCodeGen toApiVarName

* add samples change
This commit is contained in:
jiangyuan
2022-02-14 11:27:13 +08:00
committed by GitHub
parent 140f633655
commit dce8b80af7
37 changed files with 1495 additions and 36 deletions

View File

@@ -21,7 +21,7 @@ To test class name in snake case
```python
import time
import petstore_api
from petstore_api.api import fake_classname_tags_123_api
from petstore_api.api import fake_classname_tags123_api
from petstore_api.model.client import Client
from pprint import pprint
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
@@ -44,7 +44,7 @@ configuration.api_key['api_key_query'] = 'YOUR_API_KEY'
# Enter a context with an instance of the API client
with petstore_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fake_classname_tags_123_api.FakeClassnameTags123Api(api_client)
api_instance = fake_classname_tags123_api.FakeClassnameTags123Api(api_client)
client = Client(
client="client_example",
) # Client | client model