api_data.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [
  2. {
  3. "type": "post",
  4. "url": "/login",
  5. "title": "登录接口",
  6. "name": "login",
  7. "group": "User",
  8. "parameter": {
  9. "fields": {
  10. "Parameter": [
  11. {
  12. "group": "Parameter",
  13. "type": "string",
  14. "optional": false,
  15. "field": "username",
  16. "description": "<p>用户名</p>"
  17. },
  18. {
  19. "group": "Parameter",
  20. "type": "string",
  21. "optional": false,
  22. "field": "password",
  23. "description": "<p>用户密码,需要base64加密</p>"
  24. }
  25. ]
  26. }
  27. },
  28. "success": {
  29. "fields": {
  30. "Success 200": [
  31. {
  32. "group": "Success 200",
  33. "type": "string",
  34. "optional": false,
  35. "field": "message",
  36. "description": "<p>响应描述</p>"
  37. },
  38. {
  39. "group": "Success 200",
  40. "type": "int",
  41. "optional": false,
  42. "field": "status_code",
  43. "description": "<p>HTTP响应码</p>"
  44. },
  45. {
  46. "group": "Success 200",
  47. "type": "string",
  48. "optional": false,
  49. "field": "data.token",
  50. "description": "<p>认证token</p>"
  51. }
  52. ]
  53. },
  54. "examples": [
  55. {
  56. "title": "Success-Response:",
  57. "content": "HTTP/1.1 200 OK\n{\n \"message\": \"请求成功\",\n \"status_code\": \"200\"\n \"data\":{\n \"toke\":\"token\"\n }\n}",
  58. "type": "json"
  59. }
  60. ]
  61. },
  62. "version": "0.0.0",
  63. "filename": "app/Http/ApiControllers/LoginController.php",
  64. "groupTitle": "User",
  65. "sampleRequest": [
  66. {
  67. "url": "https://was.baoshi56.com/api/v1/login"
  68. }
  69. ]
  70. }
  71. ]