Trust Layer API
Project description
rekord-io-sdk
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.5
- 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 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
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import rekord_sdk
from rekord_sdk.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 = rekord_sdk.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 = rekord_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with rekord_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rekord_sdk.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
- AlternateResponseDataWrapper
- AlternateResponseDataWrapper1
- AlternateResponseDataWrapper1Data
- AlternateResponseDataWrapper1DataJobsInner
- AlternateResponseDataWrapper2
- AlternateResponseDataWrapper2Data
- AlternateResponseDataWrapper3
- AlternateResponseDataWrapper3AnchorsInner
- AlternateResponseDataWrapper3Verification
- AlternateResponseDataWrapperData
- AlternateResponseDataWrapperDataJobsInner
- AlternateResponseDataWrapperDataPendingVersion
- AlternateResponseExtendedAnchorMetadata
- AlternateResponseExtendedAnchorMetadataAnchorsInner
- AlternateResponseExtendedAnchorMetadataVerification
- BYTESBASE64
- BYTESBASE641
- BYTESBASE642
- CatalogCatalogIdProofGet200Response
- CatalogCatalogIdProofGet200ResponseData
- CatalogCatalogIdProofGet200ResponseDataVersion
- CatalogCatalogIdProofGet200ResponseDataVersionAnchorsInner
- CatalogCatalogIdProofGet200ResponseDataVersionVerification
- CatalogCatalogIdProofGet400Response
- CatalogCatalogIdProofGet404Response
- CatalogCatalogIdProofGet500Response
- CatalogCatalogIdUpdatePost200Response
- CatalogCatalogIdUpdatePost201Response
- CatalogCatalogIdUpdatePost400Response
- CatalogCatalogIdUpdatePost500Response
- CatalogCatalogIdUpdatePostRequest
- CatalogCatalogIdUpdatePostRequestNewProofsInner
- CatalogCatalogIdUpdatePostRequestProofsRemoveByInner
- CatalogCatalogIdVersionsGet200Response
- CatalogCatalogIdVersionsGet200ResponseData
- CatalogCatalogIdVersionsGet200ResponseDataCatalog
- CatalogCatalogIdVersionsGet200ResponseDataVersions
- CatalogCatalogIdVersionsGet200ResponseDataVersionsItemsInner
- CatalogCatalogIdVersionsGet400Response
- CatalogCatalogIdVersionsGet500Response
- CatalogCreatePost201Response
- CatalogCreatePost400Response
- CatalogCreatePost401Response
- CatalogCreatePost403Response
- CatalogCreatePost500Response
- CatalogCreatePostRequest
- CatalogCreatePostRequestProofsInner
- CatalogListGet200Response
- CatalogListGet200ResponseData
- CatalogListGet200ResponseDataCatalogsInner
- CatalogListGet200ResponseDataCount
- CatalogListGet400Response
- CatalogListGet500Response
- DefaultResponseRecommended
- DefaultResponseRecommended1
- DefaultResponseRecommended2
- DefaultResponseRecommended3
- DefaultResponseRecommended4
- DefaultResponseRecommended4AnchorsInner
- DefaultResponseRecommended4CatalogOwner
- DefaultResponseRecommended4Components
- DefaultResponseRecommended4ComponentsItemsInner
- DefaultResponseRecommended4Proofs
- DefaultResponseRecommended4ProofsItemsInner
- DefaultResponseRecommended4Tree
- DefaultResponseRecommendedPendingVersion
- DocsJsonGet200Response
- DocsJsonGet200ResponseInfo
- DocsJsonGet200ResponseServersInner
- FILEREF
- FILEREF1
- HealthGet200Response
- HealthGet200ResponseServicesInner
- HealthGet200ResponseServicesInnerBody
- HealthGet503Response
- HealthGet503ResponseServicesInner
- HealthGet503ResponseServicesInnerBody
- JSON1
- JSON2
- JobsJobIdGet200Response
- JobsJobIdGet200ResponseOneOf
- JobsJobIdGet200ResponseOneOfData
- JobsJobIdGet200ResponseOneOfDataBlockchainProgress
- JobsJobIdGet200ResponseOneOfDataTimestamps
- JobsJobIdGet200ResponseOneOfDataVersion
- JobsJobIdGet200ResponseOneOfDataWebhook
- JobsJobIdGet400Response
- JobsJobIdGet401Response
- JobsJobIdGet403Response
- JobsJobIdGet404Response
- JobsJobIdGet500Response
- ModelJSON
- ProofProofIdGet200Response
- ProofProofIdGet200ResponseData
- ProofProofIdGet200ResponseDataProof
- ProofProofIdGet200ResponseDataStorage
- ProofProofIdGet400Response
- ProofProofIdGet404Response
- ProofProofIdGet500Response
- TEXT
- TEXT1
- TEXT2
- UtilitiesChainsGet200Response
- UtilitiesChainsGet200ResponseData
- VersionVersionIdGet200Response
- VersionVersionIdGet200ResponseData
- VersionVersionIdGet200ResponseDataVersion
- VersionVersionIdGet500Response
- VersionVersionIdProofGet200Response
- VersionVersionIdProofGet200ResponseData
- VersionVersionIdProofGet400Response
- VersionVersionIdProofGet500Response
- VersionVersionIdVerifyPost200Response
- VersionVersionIdVerifyPost200ResponseData
- VersionVersionIdVerifyPost200ResponseDataFilesInner
- VersionVersionIdVerifyPost400Response
- VersionVersionIdVerifyPost500Response
- VersionVersionIdVerifyPostRequest
- VersionVersionIdVerifyPostRequestAnyOf
- XML
- XML1
- XML2
Documentation For Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication (JWT)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rekord_sdk-1.0.5.tar.gz.
File metadata
- Download URL: rekord_sdk-1.0.5.tar.gz
- Upload date:
- Size: 86.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a37132d27d923eb6f1e149b8c81174f2974d76694ff7e82acafa4108d962d1
|
|
| MD5 |
9b0448caf70ef7d3041d2709dbc11217
|
|
| BLAKE2b-256 |
462050218b0098cc100aa37d5510a329c3d96597a251d6da233625973d3284b7
|
File details
Details for the file rekord_sdk-1.0.5-py3-none-any.whl.
File metadata
- Download URL: rekord_sdk-1.0.5-py3-none-any.whl
- Upload date:
- Size: 223.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a112d89dd8348c36b5cae5cd98681d9271b98bd2a9e0d16d2612f27bdf734aeb
|
|
| MD5 |
ba3a842b30061da7fee38145863619fc
|
|
| BLAKE2b-256 |
7e5951ab27d98e0b8d00a522edce2e808dac361a50b01e0ea7f5bacbff714d6a
|