Skip to content

Commit

Permalink
Added refresh and updated response schema
Browse files Browse the repository at this point in the history
Signed-off-by: Nathalie Jonathan <[email protected]>
  • Loading branch information
nathaliellenaa committed Nov 15, 2024
1 parent 5561114 commit bdb8728
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/schemas/ml._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,18 @@ components:
type: integer
format: int64
description: The created time.
chunk_number:
type: integer
format: int64
description: The chunk number.
deploy_to_all_nodes:
type: boolean
description: Whether to deploy to all nodes.
is_hidden:
type: boolean
description: Whether the model is hidden.
model_id:
$ref: '_common.yaml#/components/schemas/Name'
description:
type: string
description: The model description.
Expand Down Expand Up @@ -148,6 +154,10 @@ components:
type: array
items:
$ref: '_common.yaml#/components/schemas/NodeIds'
total_chunks:
type: integer
format: int64
description: The total chunks.
algorithm:
type: string
description: The algorithm.
Expand Down
5 changes: 5 additions & 0 deletions tests/plugins/ml/ml/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ chapters:
status: 200
output:
task_id: payload.task_id
- synopsis: Refresh the index.
path: /{index}/_refresh
method: POST
parameters:
index: .plugins-ml-model
- synopsis: Search model.
id: search_model
path: /_plugins/_ml/models/_search
Expand Down

0 comments on commit bdb8728

Please sign in to comment.