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.1.tar.gz (102.7 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.1-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.1.tar.gz.

File metadata

  • Download URL: daiedge_middleware_client_api_v1-1.0.1.tar.gz
  • Upload date:
  • Size: 102.7 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.1.tar.gz
Algorithm Hash digest
SHA256 64cb819abf0e368545df8c6abe185edd016cca8ab233e890ae099271c011cffc
MD5 298f9e9caf8af22a6adc5078801c10da
BLAKE2b-256 466b7261fbf00cbff6c0dcab1b453f71b0fff58111416160c4a5d0857e473d88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: daiedge_middleware_client_api_v1-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a6934323b99a3e9d9b16734a0dfb05bf8c484bef01989afd9af6edccb7fc298
MD5 8bb70fad455d7a71f93094eaaa847345
BLAKE2b-256 4af8199491dc3aa34488e208b3a57f475519df67321c40199e4d029a8106cb9b

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