Skip to main content

dAIEDGE-DLT

Project description

daiedge-middleware-client-api-v1

API documentation

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

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.22.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

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 daiedge_middleware_client_api_v1

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 daiedge_middleware_client_api_v1

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import daiedge_middleware_client_api_v1
from daiedge_middleware_client_api_v1.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://middleware-daiedge.bisite.usal.es/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = daiedge_middleware_client_api_v1.Configuration(
    host = "https://middleware-daiedge.bisite.usal.es/api/v1"
)



# Enter a context with an instance of the API client
async with daiedge_middleware_client_api_v1.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = daiedge_middleware_client_api_v1.AccessControlApi(api_client)
    did = 'did_example' # str | User DID
    resource_id = 'resource_id_example' # str | Resource ID

    try:
        api_response = await api_instance.access_get(did, resource_id)
        print("The response of AccessControlApi->access_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccessControlApi->access_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://middleware-daiedge.bisite.usal.es/api/v1

Class Method HTTP request Description
AccessControlApi access_get GET /access
AccessControlApi access_grant_access_post POST /access/grant-access
AccessControlApi access_register_access_post POST /access/register-access
AccessControlApi access_revoke_access_post POST /access/revoke-access
AuthApi auth_context_get GET /auth/context
AuthApi auth_login_post POST /auth/login
AuthApi auth_logout_post POST /auth/logout
AuthApi auth_signup_post POST /auth/signup
IdentityApi identities_did_add_delegate_post POST /identities/{did}/add-delegate
IdentityApi identities_did_change_owner_post POST /identities/{did}/change-owner
IdentityApi identities_did_generate_key_pair_post POST /identities/{did}/generate-key-pair
IdentityApi identities_did_identity_owner_get GET /identities/{did}/identity-owner
IdentityApi identities_did_resolve_get GET /identities/{did}/resolve
IdentityApi identities_did_revoke_delegate_post POST /identities/{did}/revoke-delegate
IdentityApi identities_get GET /identities
LicenseApi licenses_devices_get GET /licenses/devices
LicenseApi licenses_get GET /licenses
LicenseApi licenses_id_delete DELETE /licenses/{id}
LicenseApi licenses_id_get GET /licenses/{id}
LicenseApi licenses_requests_get GET /licenses/requests
LicenseApi licenses_requests_id_validate_post POST /licenses/requests/{id}/validate
LicenseApi licenses_requests_post POST /licenses/requests
MarketplaceApi marketplace_buy_post POST /marketplace/buy
MarketplaceApi marketplace_delete DELETE /marketplace
MarketplaceApi marketplace_get GET /marketplace
MarketplaceApi marketplace_sell_post POST /marketplace/sell
PolicyApi policies_dids_did_delete DELETE /policies/dids/{did}
PolicyApi policies_dids_did_get GET /policies/dids/{did}
PolicyApi policies_dids_did_post POST /policies/dids/{did}
PolicyApi policies_dids_did_put PUT /policies/dids/{did}
PolicyApi policies_hardware_id_delete DELETE /policies/hardware/{id}
PolicyApi policies_hardware_id_get GET /policies/hardware/{id}
PolicyApi policies_hardware_id_post POST /policies/hardware/{id}
PolicyApi policies_hardware_id_put PUT /policies/hardware/{id}
RegisterAiModelApi model_get GET /ai-model
RegisterAiModelApi model_id_get GET /ai-model/{id}
RegisterAiModelApi model_id_post POST /ai-model/{id}
RegisterAiModelApi model_post POST /ai-model
RegisterBenchmarkApi benchmark_get GET /benchmark
RegisterBenchmarkApi benchmark_id_get GET /benchmark/{id}
RegisterBenchmarkApi benchmark_id_set_hardware_post POST /benchmark/{id}/set-hardware
RegisterBenchmarkApi benchmark_id_set_result_post POST /benchmark/{id}/set-result
RegisterBenchmarkApi benchmark_post POST /benchmark
RegisterDatasetApi dataset_get GET /dataset
RegisterDatasetApi dataset_id_get GET /dataset/{id}
RegisterDatasetApi dataset_id_post POST /dataset/{id}
RegisterDatasetApi dataset_post POST /dataset
RegisterHardwareApi hardware_get GET /hardware
RegisterHardwareApi hardware_id_delete DELETE /hardware/{id}
RegisterHardwareApi hardware_id_get GET /hardware/{id}
RegisterHardwareApi hardware_id_post POST /hardware/{id}
RegisterHardwareApi hardware_post POST /hardware
RewardManagerApi rewards_get GET /rewards
RewardManagerApi rewards_get_reward_by_rule_aid_get GET /rewards/get-reward-by-rule/{aid}
RewardManagerApi rewards_remove_reward_rule_post POST /rewards/remove-reward-rule
RewardManagerApi rewards_reward_manual_post POST /rewards/reward-manual
RewardManagerApi rewards_reward_off_chain_post POST /rewards/reward-off-chain
RewardManagerApi rewards_reward_on_chain_post POST /rewards/reward-on-chain
RewardManagerApi rewards_set_reward_rule_post POST /rewards/set-reward-rule
RoleManagementApi roles_get GET /roles
RoleManagementApi roles_grant_role_post POST /roles/grant-role
RoleManagementApi roles_has_role_get GET /roles/has-role
RoleManagementApi roles_post POST /roles
RoleManagementApi roles_revoke_role_post POST /roles/revoke-role
SystemPauseApi system_contract_pause_post POST /system/contract/pause
SystemPauseApi system_contract_unpause_post POST /system/contract/unpause
SystemPauseApi system_get GET /system
SystemPauseApi system_pause_post POST /system/pause
SystemPauseApi system_unpause_post POST /system/unpause
TokensApi tokens_balance_get GET /tokens/balance
TokensApi tokens_mint_post POST /tokens/mint
UsersApi vcs_grant_issuer_role_post POST /vcs/grant-issuer-role
UsersApi vcs_revoke_issuer_role_post POST /vcs/revoke-issuer-role
VcApi vcs_active_id_post POST /vcs/active/{id}
VcApi vcs_decode_credential_post POST /vcs/decode-credential
VcApi vcs_get GET /vcs
VcApi vcs_requests_get GET /vcs/requests
VcApi vcs_requests_id_accept_post POST /vcs/requests/{id}/accept
VcApi vcs_requests_post POST /vcs/requests
VcApi vcs_revoke_id_post POST /vcs/revoke/{id}
VcApi vcs_verify_credential_post POST /vcs/verify-credential
VcApi vcs_verify_presentation_post POST /vcs/verify-presentation
WalletApi wallet_get GET /wallet
WalletApi wallet_id_delete DELETE /wallet/{id}
WalletApi wallet_id_export_post POST /wallet/{id}/export
WalletApi wallet_id_get GET /wallet/{id}
WalletApi wallet_id_password_post POST /wallet/{id}/password
WalletApi wallet_id_post POST /wallet/{id}
WalletApi wallet_post POST /wallet

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

AuthToken

  • Type: API key
  • API key parameter name: x-session-id
  • Location: HTTP header

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

daiedge_middleware_client_api_v1-1.0.0.tar.gz (102.6 kB view details)

Uploaded Source

Built Distribution

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

daiedge_middleware_client_api_v1-1.0.0-py3-none-any.whl (253.3 kB view details)

Uploaded Python 3

File details

Details for the file daiedge_middleware_client_api_v1-1.0.0.tar.gz.

File metadata

  • Download URL: daiedge_middleware_client_api_v1-1.0.0.tar.gz
  • Upload date:
  • Size: 102.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for daiedge_middleware_client_api_v1-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e3c11cde1225e07c9c5bb8c74f589c77c3d14b60f9cc156ed278061e254e0e5d
MD5 7beb3a4262e1c38b6385f2a47460d3b4
BLAKE2b-256 a38e9059144caed8508f23545ba9cccd9b141e4f89801bd0b0e221a4d1a6a6b3

See more details on using hashes here.

File details

Details for the file daiedge_middleware_client_api_v1-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: daiedge_middleware_client_api_v1-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 253.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for daiedge_middleware_client_api_v1-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29aee598585fe4791d7bffdfed082ebe2428bf257ae7982e534f83ca7094e8c5
MD5 b5d5d4006211733f6c2ccd0f6bdc8e6d
BLAKE2b-256 184cb4142d825ec8ce34467260bdc2a9810fd0396ec610ae55f9ee75b4ecdc01

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