Routes - Sync Data
File Name : sync-data.js
File Path : /server/routes/sync-data.js
Sync Route
API Path:: api/sync-data
Description: Used to store the data in the server whenever there is a loss of connection ,fetch's the stored data when the connection is restored.
Parameters:
- Name: Trip id
- Type: String
- Name: Trip state
- Type: Object
- Name:jwtAcessToken
- In: Header
- Type:String
- Description:JWT acess token used to check the authenticity of the user
Response: Returns an object with three properties: success (bool), message, data. The third parameter data is an object with two properties: jwtAccessToken and user object.
- Http Code: 200
- Name: returnObj
- Type: Object
Name Type success boolean message string data Object