配置文件

  1. "rest-client.environmentVariables": {
  2. "$shared": {
  3. "version": "v1"
  4. },
  5. "staging": {
  6. "version": "v2",
  7. "host": "https://wx.huizhanyt.com",
  8. "token": "test token"
  9. },
  10. "production": {
  11. "host": "example.com",
  12. "token": "product token"
  13. }
  14. },

post

  1. # register
  2. POST {{host}}/v1/user/register HTTP/1.1
  3. content-type: application/json
  4. {
  5. "nickname": "sample",
  6. "password1": "1234",
  7. "password2":"123",
  8. "email":"sar@qq.com"
  9. }