All URIs are relative to https://localhost/api/v5
Method | HTTP request | Description |
---|---|---|
list_recipes | GET /recipe | List recipes |
object list_recipes(details=details, accept=accept, pretty=pretty)
List recipes
**Required permissions:** - **recipe.list**
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.RecipeApi(swagger_client.ApiClient(configuration))
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# List recipes
api_response = api_instance.list_recipes(details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling RecipeApi->list_recipes: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]