mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-09 00:32:46 +01:00
@@ -62,7 +62,7 @@ definitions:
|
||||
Message:
|
||||
type: object
|
||||
properties:
|
||||
payload: { type: object }
|
||||
payload: { }
|
||||
secrets: { type: object, additionalProperties: { type: string } }
|
||||
context: { $ref: "#/definitions/Context" }
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { type: array, items: { $ref: "#/definitions/PlaybookTemplateResponse" } }
|
||||
schema: { $ref: "#/definitions/PlaybookTemplateResponse" }
|
||||
examples:
|
||||
test:
|
||||
id: simple-2
|
||||
|
||||
@@ -10,7 +10,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { type: array, items: { $ref: "#/definitions/TaskResponse" } }
|
||||
schema: { type: array, items: { $ref: "#/definitions/TaskWithContext" } }
|
||||
examples:
|
||||
test: [ ]
|
||||
security: [ { roles: [ "ticket:read" ] } ]
|
||||
|
||||
@@ -95,7 +95,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -126,7 +126,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -168,7 +168,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8126
|
||||
@@ -234,7 +234,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8126
|
||||
@@ -262,7 +262,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -297,7 +297,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -340,7 +340,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -363,11 +363,11 @@ paths:
|
||||
operationId: "setSchema"
|
||||
parameters:
|
||||
- { name: "id", in: "path", description: "Ticket ID", required: true, type: integer, format: "int64", x-example: 8125 }
|
||||
- { name: "schema", in: "body", description: "New ticket schema", schema: { type: string }, x-example: "{}" }
|
||||
- { name: "schema", in: "body", description: "New ticket schema", required: true, schema: { type: string }, x-example: "{}" }
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -398,7 +398,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -430,7 +430,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8125
|
||||
@@ -489,6 +489,7 @@ paths:
|
||||
order: 2
|
||||
name: Escalate to malware team
|
||||
type: task
|
||||
security: [ { roles: [ "ticket:write" ] } ]
|
||||
|
||||
/tickets/{id}/playbooks/{playbookID}:
|
||||
delete:
|
||||
@@ -501,7 +502,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -625,7 +626,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -670,7 +671,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -726,7 +727,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -785,7 +786,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -826,7 +827,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/TicketResponse" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
@@ -882,7 +883,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: "successful operation"
|
||||
schema: { $ref: "#/definitions/Artifact" }
|
||||
schema: { $ref: "#/definitions/TicketWithTickets" }
|
||||
examples:
|
||||
test:
|
||||
id: 8123
|
||||
|
||||
Reference in New Issue
Block a user