mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-04 02:04:18 +00:00
changes to account and application
This commit is contained in:
@@ -71,6 +71,14 @@ Account.fields = [
|
||||
{
|
||||
name: 'registration_hook',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'hook_basic_auth_user',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'hook_basic_auth_password',
|
||||
type: 'string',
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -90,6 +90,18 @@ Application.fields = [
|
||||
name: 'call_status_hook',
|
||||
type: 'string',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'hook_basic_auth_user',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'hook_basic_auth_password',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'hook_http_method',
|
||||
type: 'string',
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -929,6 +929,18 @@ paths:
|
||||
type: string
|
||||
format: url
|
||||
description: webhook to pass call status updates to
|
||||
hook_basic_auth_user:
|
||||
type: string
|
||||
description: username to use for http basic auth when calling hook
|
||||
hook_basic_auth_password:
|
||||
type: string
|
||||
description: password to use for http basic auth when calling hook
|
||||
hook_http_method:
|
||||
type: string
|
||||
description: whether to use GET or POST
|
||||
enum:
|
||||
- get
|
||||
- post
|
||||
required:
|
||||
- name
|
||||
- account_sid
|
||||
@@ -1263,6 +1275,18 @@ components:
|
||||
call_status_hook:
|
||||
type: string
|
||||
format: url
|
||||
hook_http_method:
|
||||
type: string
|
||||
enum:
|
||||
- get
|
||||
- post
|
||||
default: get
|
||||
hook_basic_auth_user:
|
||||
type: string
|
||||
format: url
|
||||
hook_basic_auth_password:
|
||||
type: string
|
||||
format: url
|
||||
required:
|
||||
- application_sid
|
||||
- name
|
||||
|
||||
Reference in New Issue
Block a user