Fix for #5117 - raised a point that the docs didn't describe where to put properties for a query when running through the public API - fixing the spec.
This commit is contained in:
parent
ac129cee01
commit
41ec92bf9b
|
@ -1260,10 +1260,30 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"executeQuery": {
|
"executeQuery": {
|
||||||
"description": "The query body must contain the required parameters for the query, this depends on query type, setup and bindings.",
|
"description": "The parameters required for executing a query.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"properties": {
|
||||||
"description": "Key value properties of any type, depending on the query output schema."
|
"parameters": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "This contains the required parameters for the query, this depends on query type, setup and bindings.",
|
||||||
|
"additionalProperties": {
|
||||||
|
"description": "Key value properties of any type, depending on the query output schema."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pagination": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "For supported query types (currently on REST) pagination can be performed using these properties.",
|
||||||
|
"properties": {
|
||||||
|
"page": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The page which has been returned from a previous query."
|
||||||
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The number of rows to return per page."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"executeQueryOutput": {
|
"executeQueryOutput": {
|
||||||
|
|
|
@ -951,11 +951,27 @@ components:
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
executeQuery:
|
executeQuery:
|
||||||
description: The query body must contain the required parameters for the query,
|
description: The parameters required for executing a query.
|
||||||
this depends on query type, setup and bindings.
|
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
properties:
|
||||||
description: Key value properties of any type, depending on the query output schema.
|
parameters:
|
||||||
|
type: object
|
||||||
|
description: This contains the required parameters for the query, this depends
|
||||||
|
on query type, setup and bindings.
|
||||||
|
additionalProperties:
|
||||||
|
description: Key value properties of any type, depending on the query output
|
||||||
|
schema.
|
||||||
|
pagination:
|
||||||
|
type: object
|
||||||
|
description: For supported query types (currently on REST) pagination can be
|
||||||
|
performed using these properties.
|
||||||
|
properties:
|
||||||
|
page:
|
||||||
|
type: string
|
||||||
|
description: The page which has been returned from a previous query.
|
||||||
|
limit:
|
||||||
|
type: number
|
||||||
|
description: The number of rows to return per page.
|
||||||
executeQueryOutput:
|
executeQueryOutput:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
|
@ -124,12 +124,34 @@ const querySchema = object(
|
||||||
)
|
)
|
||||||
|
|
||||||
const executeQuerySchema = {
|
const executeQuerySchema = {
|
||||||
description:
|
description: "The parameters required for executing a query.",
|
||||||
"The query body must contain the required parameters for the query, this depends on query type, setup and bindings.",
|
|
||||||
type: "object",
|
type: "object",
|
||||||
additionalProperties: {
|
properties: {
|
||||||
description:
|
parameters: {
|
||||||
"Key value properties of any type, depending on the query output schema.",
|
type: "object",
|
||||||
|
description:
|
||||||
|
"This contains the required parameters for the query, this depends on query type, setup and bindings.",
|
||||||
|
additionalProperties: {
|
||||||
|
description:
|
||||||
|
"Key value properties of any type, depending on the query output schema.",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pagination: {
|
||||||
|
type: "object",
|
||||||
|
description:
|
||||||
|
"For supported query types (currently on REST) pagination can be performed using these properties.",
|
||||||
|
properties: {
|
||||||
|
page: {
|
||||||
|
type: "string",
|
||||||
|
description:
|
||||||
|
"The page which has been returned from a previous query.",
|
||||||
|
},
|
||||||
|
limit: {
|
||||||
|
type: "number",
|
||||||
|
description: "The number of rows to return per page.",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -935,8 +935,18 @@ export interface components {
|
||||||
_id: string;
|
_id: string;
|
||||||
}[];
|
}[];
|
||||||
};
|
};
|
||||||
/** @description The query body must contain the required parameters for the query, this depends on query type, setup and bindings. */
|
/** @description The parameters required for executing a query. */
|
||||||
executeQuery: { [key: string]: unknown };
|
executeQuery: {
|
||||||
|
/** @description This contains the required parameters for the query, this depends on query type, setup and bindings. */
|
||||||
|
parameters?: { [key: string]: unknown };
|
||||||
|
/** @description For supported query types (currently on REST) pagination can be performed using these properties. */
|
||||||
|
pagination?: {
|
||||||
|
/** @description The page which has been returned from a previous query. */
|
||||||
|
page?: string;
|
||||||
|
/** @description The number of rows to return per page. */
|
||||||
|
limit?: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
executeQueryOutput: {
|
executeQueryOutput: {
|
||||||
/** @description The data response from the query. */
|
/** @description The data response from the query. */
|
||||||
data: { [key: string]: unknown }[];
|
data: { [key: string]: unknown }[];
|
||||||
|
|
Loading…
Reference in New Issue