Overview
Every user need to Accept the terms and conditions in order to access the portal:
...
[
{
"channelName":"NameOfChannel 1",
"tncVersion": "v2.0"
},
{
"channelName":"NameOfChannel 2",
"tncVersion" : "v1.0"
}
]
Changes to existing API
GET /user/v1/user/read/:uid
→ Will add following keys to the response:
...
APIs Added
- Accept TnC
POST /user/v1/user/tnc/accept{ "request": {
} }
Note: Version will be identified from System settings. system settings will have identifier as "tncConfiguration" that will hold terms and condition version and other details. User Id will be taken from "x-authenticated-user-token".
Response
200 OK - Terms & conditions accepted successfully
...