Skip to content

Commit

Permalink
Fix keys in code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Feb 9, 2022
1 parent 4a98a0f commit b3d7793
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ get_all_tasks_1: |-
}
}
get_on_key_1: |-
self.client.getKey(key: d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4) { result in
self.client.getKey(key: "d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4") { result in
switch result {
case .success(let key):
print(key)
Expand Down Expand Up @@ -203,7 +203,7 @@ update_a_key_1: |-
expiresAt: "2042-04-02T00:42:42Z"
)
self.client.updateKey(
key: d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4
key: "d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4"
keyparams: keyParams
) { result in
switch result {
Expand All @@ -214,7 +214,7 @@ update_a_key_1: |-
}
}
delete_a_key_1: |-
self.client.deleteKey(key: d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4)
self.client.deleteKey(key: "d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4")
{ result in
switch result {
case .success:
Expand All @@ -226,7 +226,7 @@ delete_a_key_1: |-
security_guide_search_key_1: |-
client = MeiliSearch(host: "http://localhost:7700", apiKey: "apiKey")
client.index("patient_medical_record")
client.index("patient_medical_records")
.search(parameters) { (result: Result<SearchResult<Record>, Swift.Error>) in
switch result {
case .success(let searchResult):
Expand All @@ -240,7 +240,7 @@ security_guide_update_key_1: |-
indexes: ["doctors"]
)
self.client.updateKey(
key: d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4,
key: "d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4",
keyParams: keyParams,
) { result in
switch result {
Expand All @@ -255,7 +255,7 @@ security_guide_create_key_1: |-
description: "Search patient records key",
actions: ["search"],
indexes: ["patient_medical_records"],
expiresAt: "2023-01-01T00:00:00Z""
expiresAt: "2023-01-01T00:00:00Z"
)
self.client.createKey(keyParams) { result in
switch result {
Expand All @@ -275,7 +275,7 @@ security_guide_list_keys_1: |-
}
}
security_guide_delete_key_1: |-
self.client.deleteKey(key: d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4)
self.client.deleteKey(key: "d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4")
{ result in
switch result {
case .success:
Expand Down

0 comments on commit b3d7793

Please sign in to comment.