forked from loafle/openapi-generator-original
2.2 KiB
2.2 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
InlineResponseDefault foo_get()
Example
import petstore_api
from petstore_api.api import default_api
from petstore_api.model.inline_response_default import InlineResponseDefault
from pprint import pprint
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = petstore_api.Configuration(
host = "http://petstore.swagger.io:80/v2"
)
# 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 = default_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 Types, Responses
Code | Class | Description |
---|---|---|
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned |
default | ApiResponseForDefault | response |
ApiResponseForDefault
Name | Type | Description | Notes |
---|---|---|---|
response | urllib3.HTTPResponse | Raw response | |
body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | ||
headers | Unset | headers were not defined |
SchemaFor0ResponseBodyApplicationJson
Type | Description | Notes |
---|---|---|
InlineResponseDefault |
Authorization
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]