Skip to content

Commit 9210fbb

Browse files
meili-bors[bot]meili-botalallema
authored
Merge #792
792: Update getting_started code-samples r=alallema 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]> Co-authored-by: alallema <[email protected]> Co-authored-by: Amélie <[email protected]>
2 parents 7a2724d + 37ba5a1 commit 9210fbb

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
@@ -388,7 +388,7 @@ getting_started_add_documents_md: |-
388388
import meilisearch
389389
import json
390390
391-
client = meilisearch.Client('http://localhost:7700')
391+
client = meilisearch.Client('http://localhost:7700', 'aSampleMasterKey')
392392
393393
json_file = open('movies.json', encoding='utf-8')
394394
movies = json.load(json_file)

0 commit comments

Comments
 (0)