Advertisement
Guest User

tintin

a guest
Nov 17th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Breve resumo o que a API do APP tintin oferece
  2.  
  3.  
  4.  
  5. /user/create
  6.  
  7. post
  8.  
  9. name: string,
  10.  
  11. sex: F or M,
  12.  
  13. bio: não obrigatório,
  14.  
  15. latitude e longitude: não obrigatório,
  16.  
  17. email: obrigatorio,
  18.  
  19. password: obrigatorio,
  20.  
  21.  
  22.  
  23. /sessions
  24.  
  25. Post
  26.  
  27. Email,
  28.  
  29. Senha,
  30.  
  31.  
  32.  
  33. /user/updates/
  34.  
  35. Post
  36.  
  37. token
  38.  
  39. email: obrigatório,
  40.  
  41. Se trocar a senha os campos são
  42.  
  43. oldPassword: obrigatorio,
  44.  
  45. password: obrigatório,
  46.  
  47. confirmPasword: obrigatorio,
  48.  
  49. Bearer token: obrigatório no header da requisição,
  50.  
  51.  
  52.  
  53. /upload/file
  54.  
  55. multipartform
  56.  
  57. Value: file,
  58.  
  59. Token,
  60.  
  61.  
  62.  
  63. /location/send
  64.  
  65. post
  66.  
  67. Latitude e longitude,
  68.  
  69. Token,
  70.  
  71.  
  72.  
  73. /users/online/:id
  74.  
  75. Token,
  76.  
  77. Id do outro usuário na url,
  78.  
  79.  
  80.  
  81. Set/status
  82.  
  83. Post
  84.  
  85. Online true or false,
  86.  
  87. token
  88.  
  89.  
  90.  
  91. /get/online
  92.  
  93. Get
  94.  
  95. Token,
  96.  
  97. Estar online,
  98.  
  99.  
  100.  
  101. /users/likes
  102.  
  103. Post
  104.  
  105. Token,
  106.  
  107. Id do usuário que está recebendo like no body como id
  108.  
  109.  
  110.  
  111. /users/dislikes
  112.  
  113. Post
  114.  
  115. Token,
  116.  
  117. Id do usuário que está recebendo dislike no body como id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement