-
Notifications
You must be signed in to change notification settings - Fork 28
/
openapi-fabric.yaml
139 lines (122 loc) · 3.02 KB
/
openapi-fabric.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
openapi: 3.0.0
info:
description: Hyperledger Fabric Peer partial API
title: Hyperledger Fabric Peer
version: "2.2"
paths:
/Endorser.ProcessProposal:
post:
requestBody:
content:
application/grpc:
schema:
$ref: "#/components/schemas/SignedProposal"
description: Signed Tx Proposal
required: true
description: |-
Receive and process (endorse) transaction proposal from client.
tags:
- Peer
responses:
"200":
description: Transaction is endorsed
content:
application/grpc:
schema:
$ref: "#/components/schemas/ProposalResponse"
/AtomicBroadcast.Broadcast:
post:
requestBody:
content:
application/grpc:
schema:
type: array
items:
$ref: "#/components/schemas/Envelope"
tags:
- Orderer
responses:
"200":
description: Stream of Broadcast responses
content:
application/grpc:
schema:
$ref: "#/components/schemas/BroadcastResponse"
/AtomicBroadcast.Deliver:
post:
requestBody:
content:
application/grpc:
schema:
type: array
items:
$ref: "#/components/schemas/Envelope"
tags:
- Orderer
responses:
"200":
description: Stream of Delivered blocks
content:
application/grpc:
schema:
type: array
items:
$ref: "#/components/schemas/DeliverResponse"
tags:
- name: Peer
description: Transaction Proposal
- name: Orderer
description: Transaction Broadcasting
components:
schemas:
Proposal:
properties:
header:
type: object
description: "Header"
example: "{}"
chaincodeProposalPayload:
type: object
description: "Proposal "
example: "{}"
SignedProposal:
required:
- Signature
- Proposal
properties:
signature:
type: string
description: "Signature"
example: D6 FE BX...
proposal:
$ref: "#/components/schemas/Proposal"
Endorsement:
properties:
endorser:
type: string
description: "endrose peer's certificate "
signature:
type: string
ProposalResponse:
properties:
endorsement:
$ref: "#/components/schemas/Endorsement"
proposalResponsePayload:
type: object
description: "Result of Proposal evaluation, read\\write sets"
Envelope:
properties:
payload:
type: object
signature:
type: string
BroadcastResponse:
properties:
status:
type: integer
DeliverResponse:
properties:
status:
type: integer
block:
type: object