Skip to content

Commit 1cf5847

Browse files
Replace top menu's vX.Y with latest (#3339)
1 parent 9968045 commit 1cf5847

6 files changed

+40
-1
lines changed

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"navigation": {
144144
"versions": [
145145
{
146-
"version": "v1.16",
146+
"version": "latest",
147147
"anchors": [
148148
{
149149
"anchor": "Learn",

snippets/samples/code_samples_webhooks_delete_1.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<CodeGroup>
22

3+
```bash cURL
4+
curl \
5+
-X DELETE 'MEILISEARCH_URL/webhooks/WEBHOOK_UUID'
6+
```
7+
38
```javascript JS
49
client.deleteWebhook(WEBHOOK_UUID)
510
```

snippets/samples/code_samples_webhooks_get_1.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<CodeGroup>
22

3+
```bash cURL
4+
curl \
5+
-X GET 'MEILISEARCH_URL/webhooks'
6+
```
7+
38
```javascript JS
49
client.getWebhooks()
510
```

snippets/samples/code_samples_webhooks_get_single_1.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<CodeGroup>
22

3+
```bash cURL
4+
curl \
5+
-X GET 'MEILISEARCH_URL/webhooks/WEBHOOK_UUID'
6+
```
7+
38
```javascript JS
49
client.getWebhook(WEBHOOK_UUID)
510
```

snippets/samples/code_samples_webhooks_patch_1.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<CodeGroup>
22

3+
```bash cURL
4+
curl \
5+
-X PATCH 'MEILISEARCH_URL/webhooks/WEBHOOK_UUID' \
6+
-H 'Content-Type: application/json' \
7+
--data-binary '{
8+
"header": {
9+
"referer": null
10+
}
11+
}'
12+
```
13+
314
```javascript JS
415
client.updateWebhook(WEBHOOK_UUID, {
516
headers: {

snippets/samples/code_samples_webhooks_post_1.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
<CodeGroup>
22

3+
```bash cURL
4+
curl \
5+
-X POST 'MEILISEARCH_URL/webhooks' \
6+
-H 'Content-Type: application/json' \
7+
--data-binary '{
8+
"url": "WEBHOOK_TARGET_URL",
9+
"headers": {
10+
"authorization": "SECURITY_KEY",
11+
"referer": "https://example.com"
12+
}
13+
}'
14+
```
15+
316
```javascript JS
417
client.createWebhook({
518
url: 'WEBHOOK_TARGET_URL',

0 commit comments

Comments
 (0)