Show Phone's provision
GET
/provsion/show
RShow Phone's provision
Path parameters
-
access_token
string
required
token to be passed as a header -
id
string
required
The extension entry id.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/phones/provsion/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
phoneinfos
array
-
count
integer
Sample Response
{}
delete phone
POST
/delete
delete phone
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
mac_address
string
required
Mac address for phone.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/phones/delete \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
404
User not found
400
Invalid entry ID supplied
Sample Response
List IP phones
GET
/list
List IP phones
Path parameters
-
access_token
string
required
token to be passed as a header
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/phones/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
phones
array
-
count
integer
Sample Response
{}
phone's reprovision
POST
/reprovsion
phone's reprovision
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
mac_address
string
required
Mac address for phone.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/phones/reprovsion \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
404
User not found
400
Invalid entry ID supplied
Sample Response
Show Phone's provision
GET
/mac_addr/check
RShow Phone's provision
Path parameters
-
access_token
string
required
token to be passed as a header -
mac_address
string
required
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/phones/mac_addr/check \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
isexist
boolean
Sample Response
{}
Reboot Phone
POST
/reboot
Reboot Phone
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
ip_addr
string
required
IP of IP phone. -
mac_address
string
required
Mac address for phone.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/phones/reboot \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
404
User not found
400
Invalid entry ID supplied
Sample Response
Phone's provision
POST
/provsion
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
id
string
required
unquie id. -
phoneinfos
array
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/phones/provsion \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 1234
}'
Responses
200
Placeholders
Sample Response