Brizo 0.1.2

Brizo is the technical component executed by Publishers allowing them to provide extended data services. When running with our Docker images, it is exposed under http://localhost:8030.

Base Path

myfancybrizo.com/api/v1/brizo

/services/access/initialize

post

Initialize the SLA between the publisher and the consumer.

Parameters

body*

Service agreement initialization.

{
"consumerAddress": "0x00a329c0648769A73afAc7F9381E08FB43dBEA72",
"did": "did:op:08a429b8529856d59867503f8056903a680935a76950bb9649785cc97869a43d",
"serviceAgreementId": "bb23s87856d59867503f80a690357406857698570b964ac8dcc9d86da4ada010",
"serviceDefinitionId": "0",
"signature": "cade376598342cdae231321a0097876aeda656a567a67c6767fd8710129a9dc1",
}

Responses

201 Service agreement successfully initialized.
400 One of the required attributes is missing.
404 Invalid signature.
500 Error

/services/compute

post

Allows to execute an algorithm inside a Docker instance in the cloud. Requires the publisher of the assets to provide this service in the service agreement related with the requested `asset_did`.

Parameters

body*

Asset metadata.

{
"algorithm_did": "0x0234242345",
"asset_did": "0x0234242345",
"consumer_wallet": "0x0234242345",
"cpu": 1,
"docker_image": "python:3.6-alpine",
"memory": 1.5,
}

/services/consume

get

Allows download of asset data file.

Parameters

consumerAddress*string

The consumer address.

serviceAgreementId*string

The ID of the service agreement.

url*string

This URL is only valid if Brizo acts as a proxy. Consumer can't download using the URL if it's not through Brizo.

Responses

302 Redirect to valid asset url.
400 One of the required attributes is missing.
404 Invalid asset data.
500 Error