阳光沙滩博客系统后端api
生活随笔
收集整理的這篇文章主要介紹了
阳光沙滩博客系统后端api
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
陽光沙灘博客系統(tǒng)后端api
- 一、用戶中心接口
- 1.刪除用戶
- 2.初始化管理員賬戶
- 3.獲取人類驗(yàn)證碼
- 4.檢查郵箱是否被注冊(cè)
- 5.發(fā)送箱驗(yàn)證碼
- 6.更改郵箱
- 7.注冊(cè)
- 8.列舉用戶
- 9.登錄
- 11.退出登錄
- 12.更改密碼
- 13 通過id獲取用戶信息
- 14 更改用戶信息
- 15:檢查用戶名是否被用
- 其他接口
以下內(nèi)容就是api的具體詳情
提示:以下是本篇文章正文內(nèi)容,下面案例可供參考
一、用戶中心接口
api地址:http://280sl28549.eicp.vip:10939/swagger-ui.html?urls.primaryName=%E7%94%A8%E6%88%B7%E4%B8%AD%E5%BF%83#/
1.刪除用戶
方法:delete 參數(shù):無接口:/user / body字段:用戶id 實(shí)例:http://localhost:2021/user/743147755047747584 返回: {"success": true,"code": 20000,"message": "刪除成功","data": null }2.初始化管理員賬戶
方法:post 參數(shù):無 body字段:{"email": "2803062371@qq.com","password": "123456","userName": "admin"} 接口:/user/admin_account 實(shí)例:http://localhost:2021/user/admin_account 返回: {"success": true,"code": 20000,"message": "初始化成功","data": null}3.獲取人類驗(yàn)證碼
方法:get 參數(shù):captcha_key,不能少于13位的key 接口:/user/captcha 實(shí)例:http://localhost:2021/user/captcha?captcha_key=1111111111111 注意:該驗(yàn)證碼有效期為60秒 返回:一張具有驗(yàn)證碼的照片4.檢查郵箱是否被注冊(cè)
方法:get 參數(shù):email 接口:/user/email 實(shí)例:http://localhost:2021/user/email?email=280306371@qq.com 返回: { "success": false, "code": 40000, "message": "郵箱未注冊(cè)", "data": null }5.發(fā)送箱驗(yàn)證碼
方法:get 參數(shù):email type 接口:/user/verify_code 實(shí)例:http://localhost:2021/user/verify_code?email= 2803062371%40qq.com&type=foget 返回: {"success": true,"code": 20000,"message": "驗(yàn)證碼發(fā)送成功","data": null }6.更改郵箱
方法:put 參數(shù):email verify_code 接口:/user/email 實(shí)例:http://localhost:2021/user/email?email= 2477922515%40qq.com&verify_code=16245 返回: {"success": true,"code": 20000,"message": "郵箱更改成功"data": null }7.注冊(cè)
方法:post 參數(shù):captcha_code captcha_key email_code 接口:/user/join_inbody字段: {"email": "2803062371@qq.com","password": "123456","userName": "mytest1" } 實(shí)例: http://localhost:2021/user/join_in?captcha_code=d5esp&captcha_key=1111111111111&email_code=1972758.列舉用戶
方法:get 參數(shù):page size 接口:user/list 實(shí)例:http://localhost:2021/user/list?page=2&size=1 注意:如果返回沒結(jié)果,最大可能就是你設(shè)置的訪問的總量大于庫里面的總量,比如你訪問是3*5,也就是15個(gè),但是庫里面就10個(gè),會(huì)導(dǎo)致最后一頁一個(gè)都沒有,所以返回接口為空.9.登錄
方法:post 接口: 參數(shù):無 body參數(shù):{"password": "123456","userName": "mytest1"} body字段:驗(yàn)證碼 驗(yàn)證碼key 實(shí)例:http://localhost:2021/user/login/xudzb/111111111111111.退出登錄
方法:get 接口:/user/logout 實(shí)例:http://localhost:2021/user/logout 參數(shù):無 返回: {"success": true,"code": 40002,"message": "賬號(hào)已退出","data": null }12.更改密碼
方法: body字段: {"email": "2803062371@qq.com",password": "123456" } body字段:驗(yàn)證碼 參數(shù):無 接口:/user/password 實(shí)例:http://localhost:2021/user/password/58702513 通過id獲取用戶信息
方法:get body字段:用戶id 接口:/user/user_info 實(shí)例:http://localhost:2021/user/user_info/74314775504774758414 更改用戶信息
方法:put body字段:人類驗(yàn)證碼 接口:/user/user_info 實(shí)例:http://localhost:2021/user/user_info/75873349041704140815:檢查用戶名是否被用
方法:get 參數(shù):用戶名 接口:/user/user_name 實(shí)例:http://localhost:2021/user/user_name?userName=string其他接口
二.前端門戶
三.管理中心
總結(jié)
以上是生活随笔為你收集整理的阳光沙滩博客系统后端api的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2011微软MVP全球峰会美国行之飞抵西
- 下一篇: 问题解决:Unable to estab