Skip to content

Commit

Permalink
Merge #451
Browse files Browse the repository at this point in the history
451: Update getting_started code-samples r=brunoocasali 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 <74670311+meili-bot@users.noreply.github.com>
Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
  • Loading branch information
3 people authored Jul 11, 2023
2 parents a5c8422 + 86cdc6d commit 2f965df
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 @@ -355,7 +355,7 @@ getting_started_add_documents_md: |-
require 'json'
require 'meilisearch'
client = MeiliSearch::Client.new('http://localhost:7700')
client = MeiliSearch::Client.new('http://localhost:7700', 'aSampleMasterKey')
movies_json = File.read('movies.json')
movies = JSON.parse(movies_json)
Expand Down

0 comments on commit 2f965df

Please sign in to comment.