1 Star 0 Fork 38

kevink / TP5.1 Restful Api

forked from 嗝嗝 / TP5.1 Restful Api 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
接口文档样例.md 2.37 KB
一键复制 编辑 原始数据 按行查看 历史

Class Auth Auth授权类

  • package app\api\controller\v1

API 获取服务器授权1

  • ROUTE /api/v1/auth

  • METHOD get

  • PARAM 参数

参数名称 参数类型 参数文档 参数 filter 参数默认
appSecret string 授权字符 require-alphaNum 1
appSec2t string 授权字符1 require-alphaNum 1
appId string 开发者ID
  • SUCCESS 响应
{"code":400,"msg":"appSecret不能为空","data":[]}
  • ERROR 响应
{"code":400,"msg":"appSecret不能为空","data":[]}

API 获取服务器授权2

  • ROUTE /api/v1/auth/read1

  • METHOD get

  • PARAM 参数

参数名称 参数类型 参数文档 参数 filter 参数默认
appSecret string 授权字符 require-alphaNum 1
appSec2t string 授权字符1 require-alphaNum 1
appId string 开发者ID
  • SUCCESS 响应
{"code":400,"msg":"appSecret不能为空","data":[]}
  • ERROR 响应
{"code":400,"msg":"appSecret不能为空","data":[]}

API 获取服务器授权3

  • ROUTE /api/v1/auth/read2

  • METHOD get

  • PARAM 参数

参数名称 参数类型 参数文档 参数 filter 参数默认
appSecret string 授权字符 require-alphaNum 1
appSec2t string 授权字符1 require-alphaNum 1
appId string 开发者ID
  • SUCCESS 响应
{"code":400,"msg":"appSecret不能为空","data":[]}
  • ERROR 响应
{"code":400,"msg":"appSecret不能为空","data":[]}

Class AuthEsac AuthEsac授权类

  • package app\api\controller\v1

API 获取服务器授权1

  • ROUTE /api/v1/authEsac

  • METHOD get

  • PARAM 参数

参数名称 参数类型 参数文档 参数 filter 参数默认
appSecret string 授权字符 require-alphaNum
appSec2t string 授权字符1 require-alphaNum
appId string 开发者ID
  • SUCCESS 响应
{"code":400,"msg":"appSecret不能为空","data":[]}
  • ERROR 响应
{"code":400,"msg":"appSecret不能为空","data":[]}
PHP
1
https://gitee.com/cx_test/TP5.1-Restful-Api.git
git@gitee.com:cx_test/TP5.1-Restful-Api.git
cx_test
TP5.1-Restful-Api
TP5.1 Restful Api
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891