mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fixes OAS specs for Flows & Operations (#13776)
* add `meta` to list flows & list operations * fix list flows & operations return type array * use 'an' instead of 'a' operation
This commit is contained in:
@@ -11,7 +11,11 @@ get:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
$ref: '../../openapi.yaml#/components/schemas/Flows'
|
||||
type: array
|
||||
items:
|
||||
$ref: '../../openapi.yaml#/components/schemas/Flows'
|
||||
meta:
|
||||
$ref: '../../openapi.yaml#/components/x-metadata'
|
||||
'401':
|
||||
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
||||
'404':
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
get:
|
||||
summary: Retrieve a Operation
|
||||
summary: Retrieve an Operation
|
||||
description: Retrieve a single operation by unique identifier.
|
||||
operationId: getOperation
|
||||
responses:
|
||||
@@ -20,7 +20,7 @@ get:
|
||||
- Operations
|
||||
|
||||
patch:
|
||||
summary: Update a Operation
|
||||
summary: Update an Operation
|
||||
description: Update an existing operation
|
||||
operationId: updateOperation
|
||||
parameters:
|
||||
@@ -50,7 +50,7 @@ patch:
|
||||
- Operations
|
||||
|
||||
delete:
|
||||
summary: Delete a Operation
|
||||
summary: Delete an Operation
|
||||
description: Delete an existing operation
|
||||
operationId: deleteOperation
|
||||
responses:
|
||||
|
||||
@@ -11,7 +11,11 @@ get:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
$ref: '../../openapi.yaml#/components/schemas/Operations'
|
||||
type: array
|
||||
items:
|
||||
$ref: '../../openapi.yaml#/components/schemas/Operations'
|
||||
meta:
|
||||
$ref: '../../openapi.yaml#/components/x-metadata'
|
||||
'401':
|
||||
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
||||
'404':
|
||||
@@ -20,7 +24,7 @@ get:
|
||||
- Operations
|
||||
|
||||
post:
|
||||
summary: Create a Operation
|
||||
summary: Create an Operation
|
||||
description: Create a new operation.
|
||||
operationId: createOperation
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user