Skip to content

Commit

Permalink
feat(specs): add getAppTask endpoint to search (#3156)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jun 11, 2024
1 parent 5f7a974 commit fd5a312
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
38 changes: 38 additions & 0 deletions specs/search/paths/advanced/getAppTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
get:
tags:
- Advanced
operationId: getAppTask
x-acl:
- editSettings
description: |
Checks the status of a given application task.
summary: Check application task status
parameters:
- name: taskID
in: path
description: Unique task identifier.
required: true
schema:
type: integer
format: int64
example: 1506303845001
responses:
'200':
description: OK
content:
application/json:
schema:
title: getTaskResponse
type: object
additionalProperties: false
properties:
status:
$ref: '../../common/enums.yml#/taskStatus'
required:
- status
'400':
$ref: '../../../common/responses/BadRequest.yml'
'402':
$ref: '../../../common/responses/FeatureNotEnabled.yml'
'403':
$ref: '../../../common/responses/MethodNotAllowed.yml'
2 changes: 2 additions & 0 deletions specs/search/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ paths:
# ##########################
/1/logs:
$ref: 'paths/advanced/getLogs.yml'
/1/task/{taskID}:
$ref: 'paths/advanced/getAppTask.yml'
/1/indexes/{indexName}/task/{taskID}:
$ref: 'paths/advanced/getTask.yml'

Expand Down
11 changes: 11 additions & 0 deletions tests/CTS/requests/search/getAppTask.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"parameters": {
"taskID": 123
},
"request": {
"path": "/1/task/123",
"method": "GET"
}
}
]

1 comment on commit fd5a312

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.