| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- ### 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": "123456"
- }
- ### 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":"no_match",
- "verify_code": "123123",
- "phone": "00011059149"
- }
- ### 注册用户
- POST {{base_url}}/v1/auth/signup/using-email HTTP/1.1
- Content-Type: application/json
- {
- "name":"summer2",
- "password":"secret",
- "password_confirm":"secret",
- "verify_code": "123123",
- "email": "summer@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@testing.com",
- "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}}
|