forked from loafle/openapi-generator-original
* Reduce redundancy in python docs This is a followup to PR #5094, which had a few unresolved comments at merge time. This reduces the amount of redundant lines in the api example doc templates, and ensures that referenced Configuration objects are actually instantiated. * Regenerate samples
1.5 KiB
1.5 KiB
petstore_api.DefaultApi
All URIs are relative to http://petstore.swagger.io:80/v2
Method | HTTP request | Description |
---|---|---|
foo_get | GET /foo |
foo_get
inline_response_default.InlineResponseDefault foo_get()
Example
from __future__ import print_function
import time
import petstore_api
from pprint import pprint
# Enter a context with an instance of the API client
with petstore_api.ApiClient() as api_client:
# Create an instance of the API class
api_instance = petstore_api.DefaultApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.foo_get()
pprint(api_response)
except petstore_api.ApiException as e:
print("Exception when calling DefaultApi->foo_get: %s\n" % e)
Parameters
This endpoint does not need any parameter.
Return type
inline_response_default.InlineResponseDefault
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
0 | response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]