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.

    format : int64

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
  • count

    integer

    format : uint32

  • phoneinfos

    array

    Show child attributes

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

                      
{}
                      
                    

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

404
User not found
200
Successful operation
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

    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
  • count

    integer

    format : uint32

  • phones

    array

    Show child attributes

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

404
User not found
200
Successful operation
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

    minLength: 64

    maxLength: 64

Request body
application/json
  • phoneinfos

    array

    required

  • id

    integer

    required

    unquie id.

    format : int64

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

                      
                      
                    

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

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

Sample Response