Skip to content

Commit 4aa3fc9

Browse files
Merge #490
490: Update getting_started code-samples r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <[email protected]>
2 parents 673f4a5 + 95fcfd2 commit 4aa3fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ getting_started_add_documents_md: |-
10571057
use futures::executor::block_on;
10581058
10591059
fn main() { block_on(async move {
1060-
let client = Client::new("http://localhost:7700", Some("masterKey"));
1060+
let client = Client::new("http://localhost:7700", Some("aSampleMasterKey"));
10611061
10621062
// reading and parsing the file
10631063
let mut file = File::open("movies.json")

0 commit comments

Comments
 (0)