Skip to content

Commit

Permalink
Update references to system channel in swagger definition of channel …
Browse files Browse the repository at this point in the history
…participation API (hyperledger#4213)

Signed-off-by: May Rosenbaum <[email protected]>
  • Loading branch information
MayRosenbaum authored May 14, 2023
1 parent 86aea2d commit dd074c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
9 changes: 1 addition & 8 deletions orderer/common/channelparticipation/restapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ func NewHTTPHandler(config localconfig.ChannelParticipation, registrar ChannelMa
// description: Bad request.
// '404':
// description: The channel does not exist.
// '405':
// description: The system channel exists, removal is not allowed.
// '409':
// description: The channel is pending removal.

Expand Down Expand Up @@ -159,13 +157,8 @@ func NewHTTPHandler(config localconfig.ChannelParticipation, registrar ChannelMa
// type: string
// '400':
// description: Cannot join channel.
// '403':
// description: The client is trying to join the system-channel that does not exist, but application channels exist.
// '405':
// description: |
// The client is trying to join an app-channel, but the system channel exists.
// The client is trying to join an app-channel that exists, but the system channel does not.
// The client is trying to join the system-channel, and it exists.
// description: The client is trying to join an app-channel that exists.
// '409':
// description: The client is trying to join a channel that is currently being removed.
// '500':
Expand Down
8 changes: 1 addition & 7 deletions swagger/swagger-fabric.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,8 @@
"400": {
"description": "Cannot join channel."
},
"403": {
"description": "The client is trying to join the system-channel that does not exist, but application channels exist."
},
"405": {
"description": "The client is trying to join an app-channel, but the system channel exists.\nThe client is trying to join an app-channel that exists, but the system channel does not.\nThe client is trying to join the system-channel, and it exists.\n"
"description": "The client is trying to join an app-channel that exists."
},
"409": {
"description": "The client is trying to join a channel that is currently being removed."
Expand Down Expand Up @@ -229,9 +226,6 @@
"404": {
"description": "The channel does not exist."
},
"405": {
"description": "The system channel exists, removal is not allowed."
},
"409": {
"description": "The channel is pending removal."
}
Expand Down

0 comments on commit dd074c5

Please sign in to comment.