Closed bmpotter closed 3 years ago
@dragosguta requested these changes to the keys APIs:
POST /api/orgs/{orgid}/keys
should return 201 http code when successfulWriteJsonResponse()
should set it to application/json
)GET /api/orgs/{orgid}/keys
to return:
[
{
"name": "<key-name>",
"orgid": "<org-id>",
"owner": "<user>",
"fileName": "<organization>_<key_name>_public-key.pem",
"isExpired": false
},
...
]
Jeff tested these when he add the hzn sub-cmds on top of them.
POST /api/keys
to bePOST /api/orgs/{orgid}/keys
GET /api/orgs/{orgid}/keys
that returns the list of public keysGET /api/orgs/{orgid}/keys/<key-name>
that returns the concatenated public key to the userDELETE /api/orgs/{orgid}/keys/<key-name>
that removes the concatenated public key and the associated private keyGET /api/orgs/{ord-id}/vouchers/{device-id}
GET /api/orgs/{ord-id}/vouchers
POST /api/orgs/{ord-id}/vouchers
docs/ocs-api-swagger.yaml
accordoingly (and commit toEdge-Fabric/docs
too)