-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: application deserialization with Meetings custom webhooks (#532)
* Fix Application deserialization with Meetings custom webhooks * Add missing assertions
- Loading branch information
Showing
4 changed files
with
114 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
Vonage.Test.Unit/Data/ApplicationTests/GetApplication-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"id": "78d335fa323d01149c3dd6f0d48968cf", | ||
"name": "My Application", | ||
"capabilities": { | ||
"voice": { | ||
"webhooks": { | ||
"answer_url": { | ||
"address": "https://example.com/webhooks/answer", | ||
"http_method": "GET" | ||
}, | ||
"fallback_answer_url": { | ||
"address": "https://fallback.example.com/webhooks/answer", | ||
"http_method": "GET" | ||
}, | ||
"event_url": { | ||
"address": "https://example.com/webhooks/event", | ||
"http_method": "POST" | ||
} | ||
} | ||
}, | ||
"messages": { | ||
"webhooks": { | ||
"inbound_url": { | ||
"address": "https://example.com/webhooks/inbound", | ||
"http_method": "POST" | ||
}, | ||
"status_url": { | ||
"address": "https://example.com/webhooks/status", | ||
"http_method": "POST" | ||
} | ||
} | ||
}, | ||
"rtc": { | ||
"webhooks": { | ||
"event_url": { | ||
"address": "https://example.com/webhooks/event", | ||
"http_method": "POST" | ||
} | ||
} | ||
}, | ||
"vbc": {}, | ||
"meetings": { | ||
"webhooks": { | ||
"room_changed": { | ||
"address": "http://example.com", | ||
"http_method": "POST" | ||
}, | ||
"session_changed": { | ||
"address": "http://example.com", | ||
"http_method": "POST" | ||
}, | ||
"recording_changed": { | ||
"address": "https://54eba990d025.ngrok.app/recordings", | ||
"http_method": "POST" | ||
} | ||
} | ||
} | ||
}, | ||
"keys": { | ||
"public_key": "some public key", | ||
"private_key": "some private key" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters