DCN Feature Service (0.1.0)

Download OpenAPI specification:Download

Feature registry endpoints. Supports fetching the latest feature by name, fetching a specific version by deployed address, and registering a feature from dimension definitions.

feature

Operations related to feature contracts: creation, definition and inspection.

Head latest feature

Check if a feature exists (latest)

path Parameters
name
required
string

Name of the feature

Responses

CORS preflight

CORS preflight for latest feature

path Parameters
name
required
string

Name of the feature

Responses

Get latest feature

Get latest version of a feature by name

path Parameters
name
required
string

Name of the feature

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "local_address": "string",
  • "owner": "string",
  • "name": "string",
  • "dimensions": [
    ],
  • "condition": {
    }
}

Head versioned feature

Check if a specific feature version exists

path Parameters
name
required
string

Name of the feature

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the feature

Responses

CORS preflight

CORS preflight for versioned feature

path Parameters
name
required
string

Name of the feature

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the feature

Responses

Get versioned feature

Get a specific feature version by name

path Parameters
name
required
string

Name of the feature

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the feature

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "local_address": "string",
  • "owner": "string",
  • "name": "string",
  • "dimensions": [
    ],
  • "condition": {
    }
}

Register feature

Register a feature by name, dimensions and condition

Authorizations:
BearerAuth
Request Body schema: application/json
name
required
string

Name of the feature.

required
Array of objects (FeatureDimension)
required
object (ConditionCallDef)

A condition definition check with arguments

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "dimensions": [
    ],
  • "condition": {
    }
}

Response samples

Content type
application/json
{
  • "name": "string"
}