1.调用方式
curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=Org1'
2.代码逻辑
输入用户名和组织名,生成相应的token,如果用户没有注册,则注册用户。返回相应的token和用户密码。
3.数据结构
fabric-client
fabric-ca-client
user
curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=Org1'
输入用户名和组织名,生成相应的token,如果用户没有注册,则注册用户。返回相应的token和用户密码。
fabric-client
fabric-ca-client
user