meilisearch / meilisearch-rust

Rust wrapper for the Meilisearch API.

Home Page:https://www.meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

brunoocasali opened this issue · comments

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

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.