Routes - Sync Data

File Name : sync-data.js
File Path : /server/routes/sync-data.js

Sync Route

  1. API Path:: api/sync-data

  2. 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.

  3. 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
  4. 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

results matching ""

    No results matching ""