From e4f238c479f869dd9bd88cd90a3f8e3b10a8e043 Mon Sep 17 00:00:00 2001 From: Bastian Haverkamp Date: Tue, 23 Feb 2021 11:06:19 +0100 Subject: [PATCH 1/2] update API --- hyperledger-proposals.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hyperledger-proposals.yaml b/hyperledger-proposals.yaml index dc7bb50..34fe3b3 100644 --- a/hyperledger-proposals.yaml +++ b/hyperledger-proposals.yaml @@ -1,7 +1,7 @@ openapi: "3.0.0" info: description: "This is the Proposal Definition for the UC4 API." - version: "0.13.1" + version: "0.18.1" title: "UC4" tags: - name: "Proposals" @@ -25,12 +25,18 @@ components: unsignedTransaction: type: string format: Base64 + token: + type: string + format: Base64 SignedTransaction: type: "object" properties: unsignedTransaction: type: string format: Base64 + token: + type: string + format: Base64 signature: type: string UnsignedProposal: @@ -39,12 +45,18 @@ components: unsignedProposal: type: string format: Base64 + token: + type: string + format: Base64 SignedProposal: type: "object" properties: unsignedProposal: type: string format: Base64 + token: + type: string + format: Base64 signature: type: string externalDocs: From 1c69e0851e572332cfecdb21def5097fa544dd52 Mon Sep 17 00:00:00 2001 From: Daniel Helmert Date: Wed, 24 Feb 2021 13:09:03 +0100 Subject: [PATCH 2/2] Rewrite proposal and transactions to be contained in the token --- hyperledger-proposals.yaml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/hyperledger-proposals.yaml b/hyperledger-proposals.yaml index 34fe3b3..ee75080 100644 --- a/hyperledger-proposals.yaml +++ b/hyperledger-proposals.yaml @@ -22,41 +22,25 @@ components: UnsignedTransaction: type: "object" properties: - unsignedTransaction: + unsignedTransactionJwt: type: string - format: Base64 - token: - type: string - format: Base64 SignedTransaction: type: "object" properties: - unsignedTransaction: - type: string - format: Base64 - token: + unsignedTransactionJwt: type: string - format: Base64 signature: type: string UnsignedProposal: type: "object" properties: - unsignedProposal: + unsignedProposalJwt: type: string - format: Base64 - token: - type: string - format: Base64 SignedProposal: type: "object" properties: - unsignedProposal: - type: string - format: Base64 - token: + unsignedProposalJwt: type: string - format: Base64 signature: type: string externalDocs: