List IP phones

GET /list
List IP phones
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

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

    Show child attributes
  • count

    integer

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

    minLength: 64

    maxLength: 64

  • 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

                      
{}
                      
                    

Phone's provision

POST /provsion
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • phoneinfos

    array

    required

  • id

    integer

    required

    unquie id.

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

                      
                      
                    

delete phone

POST /delete
delete phone
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

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

400
Invalid entry ID supplied
404
User not found
200
Successful operation

Sample Response

                      
                      
                    

phone's reprovision

POST /reprovsion
phone's reprovision
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

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

400
Invalid entry ID supplied
404
User not found
200
Successful operation

Sample Response

                      
                      
                    

Reboot Phone

POST /reboot
Reboot Phone
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • mac_address

    string

    required

    Mac address for phone.
  • ip_addr

    string

    required

    IP of IP 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

400
Invalid entry ID supplied
404
User not found
200
Successful operation

Sample Response

                      
                      
                    

Show Phone's provision

GET /provsion/show
RShow Phone's provision
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    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

    Show child attributes
  • count

    integer

Sample Response

                      
{}