https://dashblocks-server.vercel.app
/session- session with user info/auth/login- login via user ID and password/auth/logout- logout (clear session)/get-project/:id- get project ZIP by project ID/save-project- save binary data of project to server as ZIP (must have an active session)
/login- login/upload-project- upload project (.dbp format only)
Server will return ok boolean key, this key reports whether your request was completed successfully or not
Session of current user
- Must have an active session, if not,
401error code will be returned
userId- ID of logged in userusername- username of logged in user
Log in into user's session
- User ID and password are must be correct, if not,
401error code will be returned
userId- ID of target userpassword- password of target user
userId- ID of logged in userusername- username of logged in user
Log out from user's session
- Must have an active session, if not,
401error code will be returned
Get saved ZIP-archive of project from the server by ID
:id- in call should be replaced with the real ID- Project must exist, if not,
404error code will be returned
Save binary data of project to the server as ZIP
- Must have an active session, if not,
401error code will be returned - File must be binary
file- binary data of projectname- name of project
projectId- ID of project (can be fetched by/get-project/:id)