Skip to content

Commit 2f965df

Browse files
meili-bors[bot]meili-botbrunoocasali
authored
Merge #451
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 <[email protected]> Co-authored-by: Bruno Casali <[email protected]>
2 parents a5c8422 + 86cdc6d commit 2f965df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.code-samples.meilisearch.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ getting_started_add_documents_md: |-
355355
require 'json'
356356
require 'meilisearch'
357357
358-
client = MeiliSearch::Client.new('http://localhost:7700')
358+
client = MeiliSearch::Client.new('http://localhost:7700', 'aSampleMasterKey')
359359
360360
movies_json = File.read('movies.json')
361361
movies = JSON.parse(movies_json)

0 commit comments

Comments
 (0)