用户工具

站点工具


base:api

支持https http2

  //建议.json结尾,可选https,已支持HTTP2
  安全访问:https://api.xlongwei.com/service/datetime.json

支持openapi鉴权

  /openapi/service?handler=datetime&path=isworkday,请求头Authorization,正文:{day:"2020-01-31"}

访问openapi获取token,推荐SDK对接,参考接口类接口列表接口对接接口订购

支持web socket长连接

  wss://api.xlongwei.com/ws/service,使用org.java-websocket:Java-WebSocket:1.5.1
  {"handler":"datetime","path":"info","data":{"day":"2020-12-17"},"sequence":"request id"}

接口组织handler+path

  /service/{handler}/{path}.json
  /openapi/service?handler={handler}&path={path}

支持参数和正文

  /service/validate.json?type=email&value=916770233@qq.com
  /service/validate.json,正文:{type="email",value="916770233@qq.com"}

接口测试:datetime.jsondatetime.json,datetimedatetime.xml

base/api.txt · 最后更改: 2020/12/18 14:15 由 admin