接受分享
Request
HTTP request (graphql)
GET /vsaas/api/v1/be?query=mutation+{acceptSharedDevice(device:String!) String!}
POST /vsaas/api/v1/be/ 
参数
Header
Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json
Required
Response
Code
200
400
401
例子
Request
curl --location --request POST 'domain/vsaas/api/v1/be/'\
--header 'Authorization: Bearer token'\
--header 'Content-Type: application/json'\
--data-raw 'mutation {acceptSharedDevice(device:"QPWOEIRUTYT")}'Response
{
    "data": {
        "acceptSharedDevice": "ok"
    }
}拒绝分享
Request
HTTP request (graphql)
GET /vsaas/api/v1/be?query=mutation+{rejectSharedDevice(device:String!) String!}
POST /vsaas/api/v1/be/
参数
Header
Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json
Required
Response
Code
200
400
401
例子
Request
curl --location --request POST 'domain/vsaas/api/v1/be/'\
--header 'Authorization: Bearer token'\
--header 'Content-Type: application/json'\
--data-raw 'mutation {rejectSharedDevice(device:"QPWOEIRUTYT")}'Response
{
    "data": {
        "rejectSharedDevice": "ok"
    }
}移除分享
Request
HTTP request (graphql)
GET /vsaas/api/v1/be
?query=mutation+{removeSharedDevice(device:String!,description:String) String!}
POST /vsaas/api/v1/be/
参数
Header
Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json
Required
Response
Code
200
400
401
例子
Request
curl --location --request POST 'domain/vsaas/api/v1/be/'\
--header 'Authorization: Bearer token'\
--header 'Content-Type: application/json'\
--data-raw 'mutation {removeSharedDevice(device:"QPWOEIRUTYT")}'Response
{
    "data": {
        "removeSharedDevice": "ok"
    }
}查询分享设备
Request
HTTP request (graphql)
GET /vsaas/api/v1/be?query={getSharedDevices {uid,udid,nickname,credential,owner,deviceType}}
POST /vsaas/api/v1/be/ 
参数
Header
Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json
Required
Response
Code
200
400
401
例子
Request
curl --location --request POST 'domain/vsaas/api/v1/be/' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw 'query {getSharedDevices {uid,udid,nickname,credential,owner,deviceType}}'Response
{
    "data": {
        "getSharedDevices": [{
            "credential": "thisisacredential",
            "nickname": "KGGJYP",
            "owner": "jerry_yang@tutk.com",
            "udid": "POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP",
            "uid": "POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP"
        }]
    }
}
