Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If called without user-token


Approach 3:

We can create terms & conditions manually and inserts the version information in system settings.

When user updates the terms and condition

  1. A new row will be inserted in the TAC table 
  2. We have to update the latest version of tac in system setting table


DB changes 

  • We need to create TAC table which will contain column →  id, version, content, created on, created by, updated on, updated by
  • We need system setting  which contains the latest version id of TAC
  • We need to add ( tacStatus, tacAcceptedDate, tacVersionId) columns in user table and we can drop (tcstatus,    tcupdateddate) as we are not using them 




We will create 2 api's

  1. Accept TAC  
    POST /v1/tac/accepts/
    {
      "request": {
    "tacVersion":"v1", "userId": "userId",
    "status": true } }


     2. Get Tac

POST