@@ -138,23 +138,47 @@ endpoint may return a `402 Bad Gateway` if it is unable to connect to gridd.
138
138
All previous design documents for the REST API are linked in the following
139
139
section.
140
140
141
- ## Changes
142
-
143
- - Added ` POST ` and ` PUT ` routes for various Grid resources. These endpoints
141
+ ## Proposed functionality
142
+
143
+ - Accept JSON Batches. The Grid REST API will be updated to support
144
+ batches encoded in bytes or JSON, providing a more natural
145
+ experience for users. An initial design document for the future
146
+ REST API, [ High-level and Low-level Transaction REST API] ({%
147
+ /community/planning/rest_api/high_low_level_transaction_rest_api.md %}),
148
+ explains that Grid will support both byte-encoded and JSON-encoded
149
+ batches. JSON-encoded batches will be signed and encoded by the
150
+ Grid daemon, as needed before submission.
151
+
152
+ - Proxy. Griddle is a client component that runs separately from the Grid daemon,
153
+ communicating with Grid via REST API. Griddle is able to proxy requests to Grid
154
+ and will create and sign batches submitted as JSON. The initial design
155
+ document, [ Griddle Proxy] ({%
156
+ link community/planning/rest_api/griddle_proxy.md %}),
157
+ explains this functionality more thoroughly.
158
+
159
+ - Backwards compatibility. Especially as the API changes greatly, setting
160
+ forth a plan for handling backwards compatibility will smooth the process
161
+ for both developers and users. See [ Rest API Backwards Compatibility] ({%
162
+ link community/planning/rest_api/backwards_compatibility.md %})
163
+ for more details.
164
+
165
+ ## Proposed API
166
+
167
+ * [ Future REST API Reference] ( /community/planning/rest_api/api/ )
168
+
169
+ - Added ` POST ` and ` PUT ` routes for various Grid resources. These endpoints
144
170
will be used to submit batches to create and update resources. This takes the
145
171
place of submitting everything through a ` POST ` to ` /batches ` and will
146
172
provide users with a more familiar REST API experience.
147
- - Updated resource schemas. The resource schemas for various Grid features
173
+ - Updated resource schemas. The resource schemas for various Grid features
148
174
have been updated to reflect their protobuf message counterparts and what a
149
175
user can expect to see when fetching that resource. Some resources do not
150
176
differ between their create and update messages and have not changed.
151
- - Removed Track and Trace endpoints. This feature will no longer be supported.
177
+ - Removed Track and Trace endpoints. This feature will no longer be supported.
152
178
153
- ## For further consideration
179
+ ## Proposed for further consideration
154
180
155
- - Consider changing ` /batch_statuses ` to ` /batch-statuses ` . This would bring
181
+ - Change ` /batch_statuses ` to ` /batch-statuses ` . This would bring
156
182
this endpoint in line with other endpoints in this API but consideration must
157
183
be given to the impact this will have on the corresponding endpoints in
158
184
Sawtooth and Splinter as well as backwards-compatibility concerns.
159
- - [ Rest API Backwards Compatibility] ({% link
160
- community/planning/rest_api/backwards_compatibility.md %})
0 commit comments