Skip to content

Commit 62aed01

Browse files
authored
Refactor webhook function names in YAML config
1 parent e3244ab commit 62aed01

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.code-samples.meilisearch.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -731,23 +731,23 @@ compact_index_1: |-
731731
client.index("INDEX_NAME").compact();
732732
rename_an_index_1: |-
733733
client.updateIndex("indexA", null, "indexB");
734-
get_webhooks_1: |-
734+
webhooks_get_1: |-
735+
client.getWebhooks();
736+
webhooks_get_single_1: |-
735737
client.getWebhook();
736-
get_webhook_1: |-
737-
client.getWebhook();
738-
create_webhook_1: |-
738+
webhooks_post_1: |-
739739
HashMap<String, Object> headers = new HashMap<>();
740740
headers.put("authorization", "MASTER_KEY");
741741
headers.put("referer", "http://example.com");
742742
CreateUpdateWebhookRequest webhookReq1 = new CreateUpdateWebhookRequest("http://webiste.com", headers);
743743
744744
Webhook webhook = client.createWebhook();
745-
update_webhook_1: |-
745+
webhooks_patch_1: |-
746746
Webhook webhook = this.client.createWebhook(webhookReq1);
747747
HashMap<String, Object> headers = new HashMap<>();
748748
headers.put("referer", null);
749749
CreateUpdateWebhookRequest webhookReq2 = new CreateUpdateWebhookRequest(webhook.getUrl(), headers);
750750
751751
Webhook updated_webhook = this.client.updateWebhook(webhook.getUuid(), webhookReq2);
752-
delete_webhook_1: |-
752+
webhooks_delete_1: |-
753753
this.client.deleteWebhook("WEBHOOK_UUID");

0 commit comments

Comments
 (0)