meilisearch-dart icon indicating copy to clipboard operation
meilisearch-dart copied to clipboard

[v1.5] Add a new method for creating snapshots

Open brunoocasali opened this issue 2 years ago • 0 comments
trafficstars

⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository. 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 https://github.com/meilisearch/integration-guides/issues/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: https://github.com/meilisearch/specifications/pull/258
  • meilisearch issue: https://github.com/meilisearch/meilisearch/issues/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:

  1. Create a new entry with this key create_snapshot_1: containing a call to the createSnapshot() 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.

brunoocasali avatar Nov 20 '23 21:11 brunoocasali