Skip to main content

Trust Layer API

Project description

rekord_sdk

API documentation for Trust Layer front-facing endpoints (Catalogs, Versions, Proofs).

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.8
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/Rekord-io/trust-layer.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/Rekord-io/trust-layer.git)

Then import the package:

import rekord_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import rekord_sdk

Getting Started

Please follow the installation procedure and then run the following:

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


# create an instance of the API class
api_instance = rekord_sdk.CatalogApi(rekord_sdk.ApiClient(configuration))
catalog_id = 'catalog_id_example' # str | Catalog ID
version_id = 'version_id_example' # str | Optional Version ID linked to the catalog (optional)
multichain = NULL # object | Optional. When true, returns an alternate response format with additional anchor metadata. (optional)

try:
    # Get catalog blockchain proof
    api_response = api_instance.catalog_catalog_id_proof_get(catalog_id, version_id=version_id, multichain=multichain)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalog_catalog_id_proof_get: %s\n" % e)


# create an instance of the API class
api_instance = rekord_sdk.CatalogApi(rekord_sdk.ApiClient(configuration))
catalog_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | Catalog ID to update
body = rekord_sdk.CatalogIdUpdateBody() # CatalogIdUpdateBody |  (optional)
multichain = NULL # object | Optional. When true, returns an alternate response format.  Note: this flag only affects the response shape; it does not change how `blockchain` / `blockchains` are interpreted. (optional)

try:
    # Update catalog
    api_response = api_instance.catalog_catalog_id_update_post(catalog_id, body=body, multichain=multichain)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalog_catalog_id_update_post: %s\n" % e)


# create an instance of the API class
api_instance = rekord_sdk.CatalogApi(rekord_sdk.ApiClient(configuration))
catalog_id = 'catalog_id_example' # str |

try:
    # List catalog versions
    api_response = api_instance.catalog_catalog_id_versions_get(catalog_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalog_catalog_id_versions_get: %s\n" % e)


# create an instance of the API class
api_instance = rekord_sdk.CatalogApi(rekord_sdk.ApiClient(configuration))
body = rekord_sdk.CatalogCreateBody() # CatalogCreateBody |
multichain = NULL # object | Optional. When true, returns an alternate response format.  Note: this flag only affects the response shape; it does not change how `blockchain` / `blockchains` are interpreted. (optional)

try:
    # Create catalog
    api_response = api_instance.catalog_create_post(body, multichain=multichain)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalog_create_post: %s\n" % e)


# create an instance of the API class
api_instance = rekord_sdk.CatalogApi(rekord_sdk.ApiClient(configuration))
page = 1 # float | Page number (1-indexed). Defaults to 1 when omitted. (optional) (default to 1)
limit = 10 # float | Number of results per page (max 50). Defaults to 10. (optional) (default to 10)

try:
    # List catalogs
    api_response = api_instance.catalog_list_get(page=page, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalog_list_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api-dev.rekord.io

Friendly method names (conceptual) mapped to generated functions:

Action Friendly name Generated method
Get catalog proof get_catalog_proof(catalog_id, version_id=None, multichain=None) catalog_catalog_id_proof_get
Update catalog update_catalog(catalog_id, catalog_data, multichain=None) catalog_catalog_id_update_post
List catalog versions list_catalog_versions(catalog_id) catalog_catalog_id_versions_get
Create catalog create_catalog(catalog_request, multichain=None) catalog_create_post
List catalogs list_catalogs(page=1, limit=10) catalog_list_get
Get job get_job(job_id) jobs_job_id_get
Get proof get_proof(proof_id) proof_proof_id_get
Get OpenAPI schema get_docs_json() docs_json_get
Health check get_health() health_get
List chains list_chains() utilities_chains_get
Get version get_version(version_id) version_version_id_get
Get version proof get_version_proof(version_id, multichain=None) version_version_id_proof_get
Verify version verify_version(version_id, body) version_version_id_verify_post

Full generated docs (hosted in the repo):

Documentation For Authorization

bearerAuth

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rekord_sdk-1.0.8.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rekord_sdk-1.0.8-py3-none-any.whl (206.7 kB view details)

Uploaded Python 3

File details

Details for the file rekord_sdk-1.0.8.tar.gz.

File metadata

  • Download URL: rekord_sdk-1.0.8.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rekord_sdk-1.0.8.tar.gz
Algorithm Hash digest
SHA256 ec0e9aff08a42b71ace306437c0f199e399d49e0b4c1bbfffb2d149576b5a68b
MD5 11f2bf666658b007b513af11909f8d72
BLAKE2b-256 899db44cc5ab679bfc9820cee58314e4e4f0347e048107bdbf773dcb7386cf97

See more details on using hashes here.

File details

Details for the file rekord_sdk-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: rekord_sdk-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 206.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rekord_sdk-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ee70f0fce494d15b246437bf1d932e615ceba2b501993d404a8619388eebc2ca
MD5 3e9cacfe951f4665dff5e0f96db56d9a
BLAKE2b-256 c163a76c197101339d51bbd1fdd5b3ce748730f94abdb4be097b30919d263bac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page