Skip to content

Instantly share code, notes, and snippets.

@ShaileshPrajapati-BTC
Created March 5, 2020 12:07
Show Gist options
  • Save ShaileshPrajapati-BTC/54c6f5b16690e6d9e0f6272f797b469d to your computer and use it in GitHub Desktop.
Save ShaileshPrajapati-BTC/54c6f5b16690e6d9e0f6272f797b469d to your computer and use it in GitHub Desktop.
// list for employee /employee
{
page: 1
gardenId: "51"
limit: 10
}
// list for access for user /employee/access
{
id: 42
}
// to save access /employee/save-access
{
userId: 42,
useraccess: [
{
"gardenId": 51,
"userId": 42,
"gardenuseraccesses": [
{
"type": "sheet",
"access": "green-leaf",
"days": "0"
},
{
"type": "sheet",
"access": "green-leaf-own",
"days": "0"
},
{
"type": "report",
"access": "report-green-leaf",
"days": 0
},
{
"type": "report",
"access": "report-green-leaf-own",
"days": 0
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment