Back to top

Example API

order

Resource Group

订单

获取订单数据
GET/order

Example URI

GET /order
URI Parameters
HideShow
order_id
string (required) 

订单id.

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "error": "1",
  "msg": "错误说明",
  "data": [
    {
      "order_id": "1",
      "money": "1000.09",
      "create_time": "2018-10-18 09:00:00",
      "user_id": "666"
    }
  ]
}

创建订单
POST/order

Example URI

POST /order
URI Parameters
HideShow
user_id
string (required) 

用户id.

money
string (required) 

金额.

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "error": "1",
  "msg": "错误说明",
  "data": []
}

Generated by aglio on 06 Nov 2018