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

KeyTypeNote
idUUIDAgent id
namestringAgent name
urlsstringAgent url
create_atdateCreation time of network
typestringAgent type
organizationOrganizationThe organization to which the agent belongs
statusstringAgent status
freeportsarrayAgent free ports

2. Network

KeyTypeNote
idUUIDNetwork id
namestringNetwork name
typestringNetwork type
versionstringFabric version
created_atdateCreation time of network
consensusstring Type of network consensus
genesisblockstringGenesis block
databasestringDatabase of network

3. Node

KeyTypeNote
idUUIDNode id
namestringNode name
typestring Node type
urlsstringNode urls
userUserThe user of the node
organizationOrganizationThe ID of the organization to which the node belongs
agent AgentThe ID of the agent to which the node belongs

status

string

The status of the node

config_filestringConfig file of node
mapstringNode's map zip file
tlsstringNode's tls zip file
cidstringDocker container id

4. Organization

KeyTypeNote
idUUIDOrganization id
namestringName of organization
networkNetworkThe ID of the network to which the organization belongs
agentsAgentThe ID of the agent to which the organization belongs
created_atdateCreation time of organization
mspstringOrganization's msp zip file
tlsstringOrganization's tls zip file

5. UserProfile

KeyTypeNote
idUUIDUserProfile ID
emailstringUser's email
usernamestringUser's username
rolestringUser's role
organizationOrganizationUser's organization

6. Channel

KeyTypeNote
idUUIDChannel Id
namestringChannel Name
organizationsOrganizationChannel Organizations
create_tsdateCreation time of channel
networkNetworkThe ID of network
orderersOrderersOrderers in the Channel

7. Chaincode

KeyTypeNote
idUUIDChaincode Id
namestringChaincode name
versionstringChaincode version
creatorstringChaincode creator
languagestringProgramming language of Chaincode
mdtstringChaincode md5
create_tsdateCreation time of Chaincode