Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- #Route actuelle:
- ##Get
- //===========
- ###Get all project
- //This route was needed for the backoffice
- /projects
- ###Response : projects: [{
- "id" : 0,
- "user_id" : 0,
- "user_name" : "string",
- "room_type" : "string",
- "project_pic" : "string",
- "project_pic_thumbnails" : "string",
- "hubstairs_proposition_pic" : "string",
- "project_progression" : "string",
- "status" : "string"
- }]
- //===========
- ###Get all projets from one user
- /projects/{user_id}
- ###Response : userProjects: [{
- "id" : 0,
- "user_id" : 0,
- "user_name" : "string",
- "room_type" : "string",
- "project_pic" : "string",
- "project_pic_thumbnails" : "string",
- "hubstairs_proposition_pic" : "string",
- "project_progression" : "string",
- "status" : "string"
- }]
- //===========
- ###Authorize user and get userInformation
- /auth
- ***Params :***
- {
- headers: {
- "email": "string",
- "password": "string"
- }
- }
- ###Response :
- {
- userInformation: {
- name: "string", user_id: "string"
- }
- }
- ##Put
- //===========
- ###Puts a project
- /projects
- Params :
- {
- headers: {
- "user_id": 0,
- "user_name": "string",
- "room_type": "string",
- "project_pic": "string",
- "project_pic_thumbnails": "string",
- "hubstairs_proposition_pic" : "string", //Not required
- "project_progression" : "string", //Not required
- "status" : "string" //Not required
- },
- method: 'PUT'
- }
- ###Response : Nothing for now
- //===========
- ###Put user
- /users
- Params :
- {
- headers: {
- "name": "string",
- "email": "string",
- "password": "string"
- },
- method: 'PUT'
- }
- ###Response : Nothing for now,
- Needs to define preferences objects (certainly an ARRAY) witch will be refered in user object
- ##Routes for developpement
- //===========
- ###Get all users
- /users
- ###Delete all users
- /delete
- ```
Add Comment
Please, Sign In to add comment