TableMergeTableDataCheck

Check the Application for Merging Table Data

Request address

POST
http://OmsAddress/app/newoms.php/webservice/business/table/merge-table-data/check?cmd=10008&ip-type=webservicerest&access-token=AccessTokenVal

POST request parameter description

Parameter name Data type Description Whether the field is required Remarks
uid integer form id for mering table data Yes

Data Parameters

Use json format to represent the record related information. The following is an example:

{
    "uid": 126
}

Return Syntax

Return Parameter Description

  1. When the returned status code is not 200, it indicates that the check was unsuccessful, and the returned data is the transaction failure message

  2. When the returned status code is 200, it indicates that the transaction was successfully created, and the data structure returned is as follows

Field name Data type Description Remarks
trans_id integer transaction id
set_id integer Set of the transaction
username char user name corresponding to the check

Request Example

Send A Request through the Curl Method

For the parameters in the command, please refer to the "Description of POST Request Parameters" on this page. For the method to obtain access-token, see: Get access-token

curl -H "Content-type: application/json" -X "POST" -d '{
    "uid": 126
}' http://omsaddress/app/newoms.php/webservice/business/table/merge-table-data/check?cmd=10008&ip-type=webservicerest&access-token=\

Return Example

Successful Return Example

Status of http request = 200

{
    "set_id": 126,
    "trans_id": 201,
    "username": "tcaplus"
}

Failed Return Example

Status of http request != 200

{
    "name": "Unauthorized",
    "message": "You are requesting with an invalid credential.",
    "code": 0,
    "status": 401,
    "type": "yii\\web UnauthorizedHttpException"
}
{
    "trans_id": [
        "ip(10.29.89.37) not in whitelist of operating table transaction(cmd:10008) in set_id:126 app_id:3 zone_id:1 table_name:table_in_same_svr"
    ]
}

results matching ""

    No results matching ""