Skip to content

Commit

Permalink
Merge pull request #1420 from kaleido-io/operation
Browse files Browse the repository at this point in the history
Include "detail" param in Swagger for GET operation
  • Loading branch information
nguyer authored Nov 2, 2023
2 parents 43dff8f + 6c96dfb commit 854df6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26737,6 +26737,9 @@ paths:
description: The time the operation was created
format: date-time
type: string
detail:
description: Additional detailed information about an operation
provided by the connector
error:
description: Any error reported back from the plugin for this
operation
Expand Down Expand Up @@ -35719,6 +35722,9 @@ paths:
description: The time the operation was created
format: date-time
type: string
detail:
description: Additional detailed information about an operation
provided by the connector
error:
description: Any error reported back from the plugin for this
operation
Expand Down
4 changes: 2 additions & 2 deletions internal/apiserver/route_get_op_by_id.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 Kaleido, Inc.
// Copyright © 2023 Kaleido, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -37,7 +37,7 @@ var getOpByID = &ffapi.Route{
},
Description: coremsgs.APIEndpointsGetOpByID,
JSONInputValue: nil,
JSONOutputValue: func() interface{} { return &core.Operation{} },
JSONOutputValue: func() interface{} { return &core.OperationWithDetail{} },
JSONOutputCodes: []int{http.StatusOK},
Extensions: &coreExtensions{
CoreJSONHandler: func(r *ffapi.APIRequest, cr *coreRequest) (output interface{}, err error) {
Expand Down

0 comments on commit 854df6c

Please sign in to comment.