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.6
  • 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

Class Method HTTP request Description
CatalogApi catalog_catalog_id_proof_get GET /catalog/{catalogId}/proof Get catalog blockchain proof
CatalogApi catalog_catalog_id_update_post POST /catalog/{catalogId}/update Update catalog
CatalogApi catalog_catalog_id_versions_get GET /catalog/{catalogId}/versions List catalog versions
CatalogApi catalog_create_post POST /catalog/create Create catalog
CatalogApi catalog_list_get GET /catalog/list List catalogs
JobsApi jobs_job_id_get GET /jobs/{jobId} Get Job details. Including Status and other attached information. Note: the create callback mainly includes status updates. This is for full details.
ProofApi proof_proof_id_get GET /proof/{proofId} Get proof details
UtilitiesApi docs_json_get GET /docs/json Get OpenAPI schema
UtilitiesApi health_get GET /health Health check
UtilitiesApi utilities_chains_get GET /utilities/chains List supported blockchains
VersionApi version_version_id_get GET /version/{versionId} Get version details
VersionApi version_version_id_proof_get GET /version/{versionId}/proof Get version proof
VersionApi version_version_id_verify_post POST /version/{versionId}/verify Verify Version membership

Documentation For Models

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.7.tar.gz (53.6 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.7-py3-none-any.whl (207.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rekord_sdk-1.0.7.tar.gz
  • Upload date:
  • Size: 53.6 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.7.tar.gz
Algorithm Hash digest
SHA256 577a70c1540aa61f588a6ec88ae0337f49e115e854992a3d008187b21f6e545f
MD5 45509f2df981a7ef3a020c30c80d2ac0
BLAKE2b-256 d1f3859d61de0854005d3683e5f8c30822566195b67d096ade53b3375b326b11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rekord_sdk-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 207.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1d8ee9f34e5af87efefa19b2afdada3e1c0e71189bcc3fe42fa64f14c1e0fe8c
MD5 0eeaab917daa7481f89a889adb986085
BLAKE2b-256 a074dfc319bfafea07ea4d552116e38a6d85ee41966f45dc100825faf500e9c8

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