Skip to content

Latest commit

 

History

History
100 lines (65 loc) · 2.58 KB

ExportApi.md

File metadata and controls

100 lines (65 loc) · 2.58 KB

flagr.ExportApi

All URIs are relative to http:https://localhost/api/v1

Method HTTP request Description
get_export_eval_cache_json GET /export/eval_cache/json
get_export_sqlite GET /export/sqlite

get_export_eval_cache_json

object get_export_eval_cache_json()

Export JSON format of the eval cache dump

Example

from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = flagr.ExportApi()

try:
    api_response = api_instance.get_export_eval_cache_json()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExportApi->get_export_eval_cache_json: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_export_sqlite

file get_export_sqlite(exclude_snapshots=exclude_snapshots)

Export sqlite3 format of the db dump, which is converted from the main database.

Example

from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = flagr.ExportApi()
exclude_snapshots = true # bool | export without snapshots data - useful for smaller db without snapshots  (optional)

try:
    api_response = api_instance.get_export_sqlite(exclude_snapshots=exclude_snapshots)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExportApi->get_export_sqlite: %s\n" % e)

Parameters

Name Type Description Notes
exclude_snapshots bool export without snapshots data - useful for smaller db without snapshots [optional]

Return type

file

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/octet-stream

[Back to top] [Back to API list] [Back to Model list] [Back to README]