Skip to content

Commit

Permalink
Include "detail" param in Swagger for GET operation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Richardson <[email protected]>
  • Loading branch information
awrichar committed Nov 1, 2023
1 parent 43dff8f commit 26104c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion internal/apiserver/route_get_op_by_id.go
Original file line number Diff line number Diff line change
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 26104c1

Please sign in to comment.