Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 721 Bytes

PlanCalculate.md

File metadata and controls

69 lines (50 loc) · 721 Bytes

Plan Calculate

Returns success message or error message.

  • URL

    api/v1/plan/calculate

  • Method:

    PUT

  • URL Params

    Required:

    None

  • Data Params

{
  "planId" : 2,
  "jsonArray" : [
      {
          "userId" : 1,
          "lateState" : 0
      },
      {
          "userId" : 2,
          "lateState" : 2
      }
  ]
}
  • Success Response:
{
    "status" : 200,
    "data" : true,
    "message" : "Success"
}
  • Error Response:
{
    "status" : 400,
    "data" : NULL,
    "message" : exception.getMessage()
}

OR

{
    "status" : 500,
    "data" : NULL,
    "message" : exception.getMessage()
}