Guest User

Untitled

a guest
Nov 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. ```
  2. #Route actuelle:
  3.  
  4. ##Get
  5. //===========
  6. ###Get all project
  7. //This route was needed for the backoffice
  8.  
  9. /projects
  10.  
  11. ###Response : projects: [{
  12. "id" : 0,
  13. "user_id" : 0,
  14. "user_name" : "string",
  15. "room_type" : "string",
  16. "project_pic" : "string",
  17. "project_pic_thumbnails" : "string",
  18. "hubstairs_proposition_pic" : "string",
  19. "project_progression" : "string",
  20. "status" : "string"
  21. }]
  22.  
  23. //===========
  24. ###Get all projets from one user
  25.  
  26. /projects/{user_id}
  27.  
  28. ###Response : userProjects: [{
  29. "id" : 0,
  30. "user_id" : 0,
  31. "user_name" : "string",
  32. "room_type" : "string",
  33. "project_pic" : "string",
  34. "project_pic_thumbnails" : "string",
  35. "hubstairs_proposition_pic" : "string",
  36. "project_progression" : "string",
  37. "status" : "string"
  38. }]
  39.  
  40. //===========
  41. ###Authorize user and get userInformation
  42.  
  43. /auth
  44.  
  45. ***Params :***
  46. {
  47. headers: {
  48. "email": "string",
  49. "password": "string"
  50. }
  51. }
  52. ###Response :
  53. {
  54. userInformation: {
  55. name: "string", user_id: "string"
  56. }
  57. }
  58.  
  59.  
  60. ##Put
  61. //===========
  62. ###Puts a project
  63.  
  64. /projects
  65.  
  66. Params :
  67. {
  68. headers: {
  69. "user_id": 0,
  70. "user_name": "string",
  71. "room_type": "string",
  72. "project_pic": "string",
  73. "project_pic_thumbnails": "string",
  74. "hubstairs_proposition_pic" : "string", //Not required
  75. "project_progression" : "string", //Not required
  76. "status" : "string" //Not required
  77. },
  78. method: 'PUT'
  79. }
  80. ###Response : Nothing for now
  81.  
  82. //===========
  83. ###Put user
  84.  
  85. /users
  86.  
  87. Params :
  88. {
  89. headers: {
  90. "name": "string",
  91. "email": "string",
  92. "password": "string"
  93. },
  94. method: 'PUT'
  95. }
  96. ###Response : Nothing for now,
  97. Needs to define preferences objects (certainly an ARRAY) witch will be refered in user object
  98.  
  99. ##Routes for developpement
  100. //===========
  101. ###Get all users
  102. /users
  103.  
  104. ###Delete all users
  105. /delete
  106. ```
Add Comment
Please, Sign In to add comment