meilisearch / meilisearch-dart

The Meilisearch API client written for Dart
https://meilisearch.com
MIT License
77 stars 26 forks source link

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

Open brunoocasali opened 9 months ago

brunoocasali commented 9 months ago

⚠️ 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:

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: