All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
get_swagger_json | GET /api/swagger.json | Get Swagger JSON |
get_swagger_json()
Get Swagger JSON
The endpoint for the current JSON document. The JSON conforms to the OpenAPI v3.0.1 (a.k.a. Swagger) specification.
import py_logto
from py_logto.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = py_logto.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with py_logto.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = py_logto.SwaggerJsonApi(api_client)
try:
# Get Swagger JSON
api_instance.get_swagger_json()
except Exception as e:
print("Exception when calling SwaggerJsonApi->get_swagger_json: %s\n" % e)
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The JSON document. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]