| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- ### POST /signup/phone/exist 注册手机号是否已存在
- POST {{base_url}}/v1/auth/signup/phone/exist HTTP/1.1
- Content-Type: application/json
- {
- "phone": "15968875425"
- }
- ### POST /signup/email/exist 注册邮箱是否已存在
- POST {{base_url}}/v1/auth/signup/email/exist HTTP/1.1
- Content-Type: application/json
- {
- "email": "ynwdlxm@163.com"
- }
- ### POST /verify_code/captcha 图片验证码
- POST {{base_url}}/v1/auth/verify_code/captcha HTTP/1.1
- Content-Type: application/json
- ### POST /verify_code/phone 发送手机验证码
- POST {{base_url}}/v1/auth/verify_code/phone HTTP/1.1
- Content-Type: application/json
- {
- "phone": "15968875425",
- "captcha_id": "captcha_skip_test",
- "captcha_answer": "888888"
- }
- ### POST /verify_code/email 发送邮箱验证码
- POST {{base_url}}/v1/auth/verify_code/email HTTP/1.1
- Content-Type: application/json
- {
- "email": "summer@example.com",
- "captcha_id": "captcha_skip_test",
- "captcha_answer": "123456"
- }
- ### 注册用户
- POST {{base_url}}/v1/auth/signup/using-phone HTTP/1.1
- Content-Type: application/json
- {
- "name": "summer",
- "password": "secret",
- "password_confirm": "secret",
- "verify_code": "439665",
- "phone": "00011059149"
- }
- ### 注册用户
- POST {{base_url}}/v1/auth/signup/using-email HTTP/1.1
- Content-Type: application/json
- {
- "name": "summer3",
- "password": "secret",
- "password_confirm": "secret",
- "verify_code": "123123",
- "email": "summer3@testing.com"
- }
- ### 登录用户
- POST {{base_url}}/v1/auth/login/using-password HTTP/1.1
- Content-Type: application/json
- {
- "captcha_id": "xTS6AtcgjUVABJj2M9NE",
- "captcha_answer": "338750",
- "login_id": "summer",
- "password": "secret"
- }
- ### 刷新token
- POST {{base_url}}/v1/auth/login/refresh-token HTTP/1.1
- Authorization: Bearer {{access_token}}
- Content-Type: application/json
- {}
- ### /test_auth 测试认证
- GET {{base_url}}/test_auth HTTP/1.1
- Authorization: Bearer {{access_token}}
- ### /test_gust 测试认证
- GET {{base_url}}/test_gust HTTP/1.1
- Authorization: Bearer {{access_token}}
- ### GET /current_user 当前登陆用户
- GET {{base_url}}/v1/auth/user HTTP/1.1
- Authorization: Bearer {{access_token}}
- ### 用户列表
- GET {{base_url}}/v1/users HTTP/1.1
- ### 创建分类
- POST {{base_url}}/v1/categories HTTP/1.1
- Authorization: Bearer {{access_token}}
- Content-Type: application/json
- {
- "name": "分类1",
- "description": "分类1描述"
- }
- ### 更新分类
- PUT {{base_url}}/v1/categories/1 HTTP/1.1
- Authorization: Bearer {{access_token}}
- Content-Type: application/json
- {
- "name": "新分类名称",
- "description": "分类1描述"
- }
- ### 分类列表
- GET {{base_url}}/v1/categories?page=2&sort=id&order=asc&per_page=10 HTTP/1.1
- Content-Type: application/json
- ### 删除分类
- DELETE {{base_url}}/v1/categories/1 HTTP/1.1
- Authorization: Bearer {{access_token}}
- Content-Type: application/json
- ### 创建话题
- POST {{base_url}}/v1/topics HTTP/1.1
- Authorization: Bearer {{access_token}}
- Content-Type: application/json
- {
- "title": "我的的帖子2",
- "body": "话题1内容, 这里是帖子描述内容帖子描述内容",
- "category_id": "3"
- }
- ### 更新话题
- PUT {{base_url}}/v1/topics/1 HTTP/1.1
- Authorization: Bearer {{access_token}}
- Content-Type: application/json
- {
- "title": "我的的帖子3",
- "body": "话题1内容, 这里是帖子描述内容帖子描述内容",
- "category_id": "3"
- }
|