Documentacion con Bruno, los eventos se redirigen
This commit is contained in:
23
API-MOCK-SHOPIFY/Webhooks/Launch Order.bru
Normal file
23
API-MOCK-SHOPIFY/Webhooks/Launch Order.bru
Normal file
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Launch Order
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{host}}:{{port}}/webhooks/shopify/orders
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"topic":"orders/create",
|
||||
"id":"1234"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
26
API-MOCK-SHOPIFY/Webhooks/Subscribe To.bru
Normal file
26
API-MOCK-SHOPIFY/Webhooks/Subscribe To.bru
Normal file
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: Subscribe To
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{host}}:{{port}}/webhooks/subto
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"host": "http://localhost",
|
||||
"port": "3000",
|
||||
"endpoint": "/test2",
|
||||
"method": "POST",
|
||||
"topic": "orders/create"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
8
API-MOCK-SHOPIFY/Webhooks/folder.bru
Normal file
8
API-MOCK-SHOPIFY/Webhooks/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Webhooks
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user