[v1.5] Add a new method for creating snapshots
brunoocasali opened this issue · 0 comments
Also, if you are a maintainer, feel free to add any clarification and instruction about this issue.
Sorry if this is already partially/completely implemented, feel free to let me know about the state of this issue in the repo.
Related to meilisearch/integration-guides#290
This issue is divided in two sections, first you need to make the implementation, second you must update the code-samples (no one likes a outdated docs, right?).
New implementation
Related to:
- spec: meilisearch/specifications#258
- meilisearch issue: meilisearch/meilisearch#4052
Add a method createSnapshot
similar to createDump()
to call the newly introduced POST /snapshots
route and return a task.
👉 Usage: https://www.notion.so/meilisearch/Usage-On-demand-snapshots-f105c94abb444b61a9d0f94550a5199e
Code samples:
Inside of this file: .code-samples.meilisearch.yml
:
- Create a new entry with this key
create_snapshot_1:
containing a call to thecreateSnapshot()
method.
Use this as a reference if the previous description was not helpful:
create_snapshot_1: |-
curl \
-X POST 'http://localhost:7700/snapshots'
Todo:
- Implement the new
createSnapshot
method - Update the code-samples according to this issue.