openapi: be consistent
This commit is contained in:
parent
a535f4fb18
commit
3334b84d40
@ -121,7 +121,7 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
/operations/{OperationID}/failed:
|
/operations/{OperationID}/status/operation-failed:
|
||||||
post:
|
post:
|
||||||
summary: (Internal endpoint) Fail an operation and write a StatusMessage
|
summary: (Internal endpoint) Fail an operation and write a StatusMessage
|
||||||
operationId: actionOperationFailed
|
operationId: actionOperationFailed
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
//
|
//
|
||||||
// Fail the specified OperationID with a StatusMessage.
|
// Fail the specified OperationID with a StatusMessage.
|
||||||
//
|
//
|
||||||
// POST /operations/{OperationID}/failed
|
// POST /operations/{OperationID}/status/operation-failed
|
||||||
func (svc *Service) ActionOperationFailed(ctx context.Context, params internal.ActionOperationFailedParams) (error) {
|
func (svc *Service) ActionOperationFailed(ctx context.Context, params internal.ActionOperationFailedParams) (error) {
|
||||||
pmap := datastore.Optional()
|
pmap := datastore.Optional()
|
||||||
pmap.Add("status_id", model.OperationStatusFailed)
|
pmap.Add("status_id", model.OperationStatusFailed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user