Skip to content

Commit

Permalink
Merge #792
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
4 people authored Jul 4, 2023
2 parents 7a2724d + 37ba5a1 commit 9210fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ getting_started_add_documents_md: |-
import meilisearch
import json
client = meilisearch.Client('http://localhost:7700')
client = meilisearch.Client('http://localhost:7700', 'aSampleMasterKey')
json_file = open('movies.json', encoding='utf-8')
movies = json.load(json_file)
Expand Down

0 comments on commit 9210fbb

Please sign in to comment.