Models
Model
- Org
- POST api/v1/organizations/ Â Â #create organization,just for MSP and tls
- POST api/v1/nodes/ Â Â #create orderer, peer, just for MSP and tls.
POST api/v1/users/ Â #create user, bind current user.
- Agent
- POST api/v1/agents/ Â #create agent and connect to the resource; bind to organization.
- Network
- POST api/v1/networks  #create network
- Nodes
POST api/v1/nodes/{id}/operations/ Â Â #start, stop, restart a node.
- Channel
- POST api/v1/channels #create channel
- Chaincode
- POST api/v1/chaincode #upload the chaincode
- POST api/v1/chaincode{id}/operations/ Â Â #intall, instanitate the chaincode.
1. Agent
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 |
---|---|---|
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 |
---|---|---|
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 |
---|---|---|
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 |
---|---|---|
id | UUID | UserProfile ID |
string | User's email | |
username | string | User's username |
role | string | User's role |
organization | Organization | User's organization |
6. Channel
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 |
---|---|---|
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 |