-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ML create, update, get, search, delete memory APIs.
Signed-off-by: Nathalie Jonathan <[email protected]>
- Loading branch information
1 parent
9c8431f
commit 5f0367a
Showing
8 changed files
with
415 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the creation of a memory. | ||
version: '>= 2.12' | ||
epilogues: | ||
- path: /_plugins/_ml/memory/{memory_id} | ||
method: DELETE | ||
status: [200, 404] | ||
parameters: | ||
memory_id: ${create_memory.memory_id} | ||
chapters: | ||
- synopsis: Create a memory. | ||
id: create_memory | ||
path: /_plugins/_ml/memory | ||
method: POST | ||
request: | ||
payload: | ||
name: Test memory | ||
response: | ||
status: 200 | ||
output: | ||
memory_id: payload.memory_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the deletion of a memory. | ||
version: '>= 2.12' | ||
prologues: | ||
- path: /_plugins/_ml/memory | ||
id: create_memory | ||
method: POST | ||
request: | ||
payload: | ||
name: Test memory | ||
output: | ||
memory_id: payload.memory_id | ||
epilogues: | ||
- path: /_plugins/_ml/memory/{memory_id} | ||
method: DELETE | ||
status: [200, 404] | ||
parameters: | ||
memory_id: ${create_memory.memory_id} | ||
chapters: | ||
- synopsis: Delete a memory. | ||
path: /_plugins/_ml/memory/{memory_id} | ||
method: DELETE | ||
parameters: | ||
memory_id: ${create_memory.memory_id} | ||
response: | ||
status: 200 |
Oops, something went wrong.