Skip to content

Instantly share code, notes, and snippets.

@guillegette
Last active July 23, 2019 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save guillegette/40149649da5304e165c639d7d0bc15c7 to your computer and use it in GitHub Desktop.
Save guillegette/40149649da5304e165c639d7d0bc15c7 to your computer and use it in GitHub Desktop.
GET /search
{
"id": "5d372c84d96093007b1e4e0c",
"custom": true,
"name": "Pending Taks",
"payload": {
"sort": [],
"limit": 100,
"expand": [
"createdBy",
"assignedTo",
"tags"
],
"includeSubTasks": true,
"predicates": [
{
"value": "pending",
"comparison": "eq",
"attribute": "status",
"type": "status"
}
]
},
"createdAt": "2019-07-23T15:52:33.493Z",
"updatedAt": "2019-07-23T15:52:33.493Z",
"isPrimary": false,
"users": [],
"createdBy": {
"user": "56e2353f71adb20c8d1fecfa1dc40d9e"
}
}
{
"id": "5d372c84d96093007b1e4e0e",
"custom": true,
"name": "Completed Taks",
"payload": {
"sort": [],
"limit": 100,
"expand": [
"subscribers",
"createdBy",
"assignedTo",
"taskStatus",
"tags"
],
"includeSubTasks": true,
"predicates": [
{
"value": "done",
"comparison": "eq",
"attribute": "status",
"type": "status"
}
]
},
"createdAt": "2019-07-23T15:52:33.493Z",
"updatedAt": "2019-07-23T15:52:33.493Z",
"isPrimary": false,
"users": [],
"createdBy": {
"user": "56e2353f71adb20c8d1fecfa1dc40d9e"
}
}
{
"searches":[
{
"id":"5d372c84d96093007b1e4e0e",
"name":"Completed tasks",
"custom":true,
"createdAt":"2019-07-23T15:49:24.947Z",
"updatedAt":"2019-07-23T15:49:24.947Z",
"usersCount":0,
"createdBy":{
"user":"56e2353f71adb20c8d1fecfa1dc40d9e"
}
},
{
"id":"5d372c84d96093007b1e4e0c",
"name":"Pending tasks",
"custom":true,
"createdAt":"2019-07-23T15:49:24.890Z",
"updatedAt":"2019-07-23T15:49:24.890Z",
"usersCount":1,
"createdBy":{
"user":"56e2353f71adb20c8d1fecfa1dc40d9e"
}
}
],
"total":2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment