Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
FAB-17839 Ch.Part.API: List channels REST handler (#1232)
* FAB-17839 Ch.Part.API: List REST handler Develop the following handler functionality. List all channels: `GET /participation/v1/channels`. List a single handler: `GET /participation/v1/channels/my-channel`. Define the interface the Registrar will implement, place skeleton methods in it. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I4ce65b406ccbbbe8e1dbd4a95680c3561f5fc7c9 * fix gofmt Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I4836ff6dc3101c1ceaeb98db8234ee732f511717 * Review comments: split types to leaf package Split the types used by packages multichannel & channelparticipation to a leaf package, in order to minimize dependencies. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I0b9ea17fd85f1f5bf1aba3ea8be80fc7b19e190f * Review comments: improve ChannelManagement interface Streamline the ChannelManagement interface return types and type names. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I67e105f9e7e315c1ce6f5b16898de4aa94e609eb * Review comments: use gorilla/mux to route requests Instead of parsing and matching the path, use gorilla/mux to route requests and identify the channel-id. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I6739fe027fab523a0a26a25838a36e42cc7f1469 * Review comments: use gorilla/mux to match headers Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I179680a0556fef7110e69c0612687757844466e0 * Review comments: streamline types and return values Change return values to non-pointer type. Streamline ChannelList: - Drop Size, - Change Channels slice to carry app-channels only, - Change SystemChannel to ChannelInfoShort. Drop BlockHash from ChannelInfo. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I24c6ecccb58d95c307f03332ef0a4d2c06a063aa * Review comments: rename methods Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: Ib5b88ab5bc63e4c3ed3ef1cd44c6a17e755b8b91
- Loading branch information
Showing
6 changed files
with
664 additions
and
23 deletions.
There are no files selected for viewing
143 changes: 143 additions & 0 deletions
143
orderer/common/channelparticipation/mocks/channel_management.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.