Models

Models

Model

  1. Org

    1. POST api/v1/organizations/     #create organization,just for MSP and tls

    2. POST api/v1/nodes/     #create orderer, peer, just for MSP and tls.

    3. POST api/v1/users/   #create user, bind current user.

  2. Agent

    1. POST api/v1/agents/   #create agent and connect to the resource; bind to organization.

  3. Network

    1. POST api/v1/networks  #create network

  4. Nodes

    1. POST api/v1/nodes/{id}/operations/    #start, stop, restart a node.

  5. Channel

    1. POST api/v1/channels #create channel

  6. Chaincode

    1. POST api/v1/chaincode #upload the chaincode

    2. POST api/v1/chaincode{id}/operations/   #intall, instanitate the chaincode.

1. Agent

Key

Type

Note

Key

Type

Note

id

UUID

Agent id

name

string

Agent name

urls

string

Agent url

create_at

date

Creation time of network

type

string

Agent type

organization

Organization

The organization to which the agent belongs

status

string

Agent status

freeports

array

Agent free ports

2. Network

Key

Type

Note

Key

Type

Note

id

UUID

Network id

name

string

Network name

type

string

Network type

version

string

Fabric version

created_at

date

Creation time of network

consensus

string 

Type of network consensus

genesisblock

string

Genesis block

database

string

Database of network

3. Node

Key

Type

Note

Key

Type

Note

id

UUID

Node id

name

string

Node name

type

string 

Node type

urls

string

Node urls

user

User

The user of the node

organization

Organization

The ID of the organization to which the node belongs

agent 

Agent

The ID of the agent to which the node belongs

status

string

The status of the node

config_file

string

Config file of node

map

string

Node's map zip file

tls

string

Node's tls zip file

cid

string

Docker container id

4. Organization

Key

Type

Note

Key

Type

Note

id

UUID

Organization id

name

string

Name of organization

network

Network

The ID of the network to which the organization belongs

agents

Agent

The ID of the agent to which the organization belongs

created_at

date

Creation time of organization

msp

string

Organization's msp zip file

tls

string

Organization's tls zip file

5. UserProfile

Key

Type

Note

Key

Type

Note

id

UUID

UserProfile ID

email

string

User's email

username

string

User's username

role

string

User's role

organization

Organization

User's organization

6. Channel

Key

Type

Note

Key

Type

Note

id

UUID

Channel Id

name

string

Channel Name

organizations

Organization

Channel Organizations

create_ts

date

Creation time of channel

network

Network

The ID of network

orderers

Orderers

Orderers in the Channel

7. Chaincode

Key

Type

Note

Key

Type

Note

id

UUID

Chaincode Id

name

string

Chaincode name

version

string

Chaincode version

creator

string

Chaincode creator

language

string

Programming language of Chaincode

mdt

string

Chaincode md5

create_ts

date

Creation time of Chaincode