All URIs are relative to http://api.teke.li:9090
Method | HTTP request | Description |
---|---|---|
branding | GET /api/internal/branding | Get the branding for the UI |
global_search | GET /api/internal/search | Perform a global search. |
login | POST /api/internal/login | Log in a user |
profile | GET /api/internal/profile | Get the current user's profile |
ApiBrandingResponse branding()
Get the branding for the UI
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeaderAuth
configuration = swagger_client.Configuration()
configuration.api_key['Grpc-Metadata-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Grpc-Metadata-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InternalServiceApi(swagger_client.ApiClient(configuration))
try:
# Get the branding for the UI
api_response = api_instance.branding()
pprint(api_response)
except ApiException as e:
print("Exception when calling InternalServiceApi->branding: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiGlobalSearchResponse global_search(search=search, limit=limit, offset=offset)
Perform a global search.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeaderAuth
configuration = swagger_client.Configuration()
configuration.api_key['Grpc-Metadata-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Grpc-Metadata-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InternalServiceApi(swagger_client.ApiClient(configuration))
search = 'search_example' # str | Search query. (optional)
limit = 'limit_example' # str | Max number of results to return. (optional)
offset = 'offset_example' # str | Offset offset of the result-set (for pagination). (optional)
try:
# Perform a global search.
api_response = api_instance.global_search(search=search, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling InternalServiceApi->global_search: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
search | str | Search query. | [optional] |
limit | str | Max number of results to return. | [optional] |
offset | str | Offset offset of the result-set (for pagination). | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiLoginResponse login(body)
Log in a user
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeaderAuth
configuration = swagger_client.Configuration()
configuration.api_key['Grpc-Metadata-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Grpc-Metadata-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InternalServiceApi(swagger_client.ApiClient(configuration))
body = swagger_client.ApiLoginRequest() # ApiLoginRequest |
try:
# Log in a user
api_response = api_instance.login(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling InternalServiceApi->login: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ApiLoginRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiProfileResponse profile()
Get the current user's profile
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeaderAuth
configuration = swagger_client.Configuration()
configuration.api_key['Grpc-Metadata-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Grpc-Metadata-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InternalServiceApi(swagger_client.ApiClient(configuration))
try:
# Get the current user's profile
api_response = api_instance.profile()
pprint(api_response)
except ApiException as e:
print("Exception when calling InternalServiceApi->profile: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]