Skip to main content

Rekord.io SDK

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

openapi-client

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

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.20.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import openapi_client

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 openapi_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api-dev.rekord.io
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://api-dev.rekord.io"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = openapi_client.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.CatalogApi(api_client)
    catalog_id = 'catalog_id_example' # str | Catalog ID
    version_id = 'version_id_example' # str | Optional Version ID linked to the catalog (optional)
    multichain = None # 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)
        print("The response of CatalogApi->catalog_catalog_id_proof_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling CatalogApi->catalog_catalog_id_proof_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

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

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_io_sdk-1.0.4.tar.gz (86.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_io_sdk-1.0.4-py3-none-any.whl (224.3 kB view details)

Uploaded Python 3

File details

Details for the file rekord_io_sdk-1.0.4.tar.gz.

File metadata

  • Download URL: rekord_io_sdk-1.0.4.tar.gz
  • Upload date:
  • Size: 86.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for rekord_io_sdk-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3802fd08167a46ed770d803d2f834c251802da7ca0fc5f0b1e6accf3162dea9e
MD5 41ad8292472d4aadcc110c7279c537ee
BLAKE2b-256 be2aa279f2894ac2a4084dea6b29e83c74fc4b2dbef259e02acf13c86ba94cbb

See more details on using hashes here.

File details

Details for the file rekord_io_sdk-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: rekord_io_sdk-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 224.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for rekord_io_sdk-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 567786311780d913be83d8fd8739cfd77f563a844f446e29dfa7d6bd029b8a60
MD5 95e96807ec0ccc5e06439e1deb80dd39
BLAKE2b-256 85a943e70d565ad61ece61702129097869b3befaf61864fb95e062578f074a3b

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