| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- ### 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}}
- ### users
- GET {{base_url}}/v1/users HTTP/1.1
|