ActivityJunofilter
Activity junofilter¶
Attempt to filter activities
Request¶
Parameters¶
Parameter | Type | Path/Query | Required | Notes |
---|---|---|---|---|
size | integer | query | yes | the maximum number of objects that the junofilter returns as a response |
page | integer | query | yes | the page number that the filter returns |
by | string | query | yes | the value that defines the filter |
order | string | query | yes | ascending or descending sorting of the filter results |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
filteredType | object | yes | object containing following enums: CALENDAR , ACTIVITIES AND REQUESTS |
approval | object | yes | object containing following enums: APPROVED , DECLINED , WAITING , ALL |
workingHours | boolean | no | defines if workinghours are being filtered |
activityTypeIds | array | yes | array containing integers defining the activity type ids |
places | array | yes | array containing integers defining the time zones of users |
projectIds | array | yes | array containing integers defining the project ids |
issueIds | array | yes | array containing integers defining the issue ids |
teamIds | array | yes | array containing integers defining the team ids |
userIds | array | yes | array containing integers defining the user ids |
dateSettings | object | no | object containing dateFrom and dateTo (both strings) that define the first and the last day of the activity |
deleted | boolean | no | defines if deleted activities are being filtered |
navbar | object | no | object containing substring (string) |
Request body example¶
{
"filteredType": "CALENDAR",
"approval": "APPROVED",
"workingHours": true,
"activityTypeIds": [
{
"operator": "=",
"value": 1
}
],
"places": [
{
"operator": "=",
"value": 1
}
],
"projectIds": [
{
"operator": "=",
"value": 1
}
],
"issueIds": [
{
"operator": "=",
"value": 1
}
],
"teamIds": [
{
"operator": "=",
"value": 1
}
],
"userIds": [
{
"operator": "=",
"value": 1
}
],
"dateSettings": {
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z"
},
"deleted": true,
"navbar": {
"substring": "string"
}
}
curl --location 'https://example.juno.one/v1/activity/junofilter' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1MzU0MjEyfQ.J68rrbT6pA6uApOkVl58ID6R7oHWnmiaYdUpJQyyts-vCOfsXYNp7y8BkBKu3NEE5v87nW4vp3-8BxHF-y55hw' \
--header 'X-tenantID: example' \
--header 'Zone: GMT' \
--header 'Content-Type: application/json' \
--data '{
"filteredType": "CALENDAR",
"approval": "APPROVED",
"workingHours": true,
"activityTypeIds": [
{
"operator": "=",
"value": 1
}
],
"places": [
{
"operator": "=",
"value": 1
}
],
"projectIds": [
{
"operator": "=",
"value": 1
}
],
"issueIds": [
{
"operator": "=",
"value": 1
}
],
"teamIds": [
{
"operator": "=",
"value": 1
}
],
"userIds": [
{
"operator": "=",
"value": 12
}
],
"dateSettings": {
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z"
},
"deleted": true,
"navbar": {
"substring": "string"
}
}'
import requests
import json
url = "https://example.juno.one/v1/activity/junofilter"
payload = json.dumps({
"filteredType": "CALENDAR",
"approval": "APPROVED",
"workingHours": True,
"activityTypeIds": [
{
"operator": "=",
"value": 1
}
],
"places": [
{
"operator": "=",
"value": 1
}
],
"projectIds": [
{
"operator": "=",
"value": 1
}
],
"issueIds": [
{
"operator": "=",
"value": 1
}
],
"teamIds": [
{
"operator": "=",
"value": 1
}
],
"userIds": [
{
"operator": "=",
"value": 12
}
],
"dateSettings": {
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z"
},
"deleted": True,
"navbar": {
"substring": "string"
}
})
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1MzU0MjEyfQ.J68rrbT6pA6uApOkVl58ID6R7oHWnmiaYdUpJQyyts-vCOfsXYNp7y8BkBKu3NEE5v87nW4vp3-8BxHF-y55hw',
'X-tenantID': 'example',
'Zone': 'GMT',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n \"filteredType\": \"CALENDAR\",\n \"approval\": \"APPROVED\",\n \"workingHours\": true,\n \"activityTypeIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"places\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"projectIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"issueIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"teamIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"userIds\": [\n {\n \"operator\": \"=\",\n \"value\": 12\n }\n ],\n \"dateSettings\": {\n \"dateFrom\": \"2020-06-03T00:00:00.000Z\",\n \"dateTo\": \"2020-06-03T00:00:00.000Z\"\n },\n \"deleted\": true,\n \"navbar\": {\n \"substring\": \"string\"\n }\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/v1/activity/junofilter")
.post(body)
.addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1MzU0MjEyfQ.J68rrbT6pA6uApOkVl58ID6R7oHWnmiaYdUpJQyyts-vCOfsXYNp7y8BkBKu3NEE5v87nW4vp3-8BxHF-y55hw")
.addHeader("X-tenantID", "example")
.addHeader("Zone", "GMT")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of activity junofilter has the status 200
with following response body:
{
"data": [
{
"id": 1,
"activityTypeId": {
"id": 1,
"name": "Andrej",
"description": "test",
"color": "#29a745",
"workingHours": true,
"approvable": true
},
"place": {
"id": 1,
"name": "test",
"type": "CUSTOM"
},
"author": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"issueId": {
"id": 2,
"name": "test"
},
"teamId": {
"id": 1,
"name": "test",
"deleted": false
},
"includeWeekends": true,
"description": "test",
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z",
"timeFrom": "720",
"timeTo": "720",
"duration": 1,
"statusId": {
"id": 1,
"name": "test",
"color": "#29a745",
"positiveFinal": false,
"negativeFinal": false
},
"statusEditor": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"deleted": false,
"created_at": "2020-06-03T00:00:00.000Z"
}
],
"first": true,
"last": true,
"totalPages": 1,
"totalElements": 1,
"numberOfElements": 1,
"limit": 10,
"pageNumber": 1
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Activity In-list junofilter¶
Attempt to filter activities in a list
Request¶
Parameters¶
Parameter | Path/Query | Type | Required | Notes |
---|---|---|---|---|
by | string | query | yes | the value that defines the filter |
order | string | query | yes | ascending or descending sorting of the filter results |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
filteredType | object | yes | object containing following enums: CALENDAR , ACTIVITIES AND REQUESTS |
approval | object | yes | object containing following enums: APPROVED , DECLINED , WAITING , ALL |
workingHours | boolean | no | defines if workinghours are being filtered |
activityTypeIds | array | yes | array containing integers defining the activity type ids |
places | array | yes | array containing integers defining the time zones of users |
projectIds | array | yes | array containing integers defining the project ids |
issueIds | array | yes | array containing integers defining the issue ids |
teamIds | array | yes | array containing integers defining the team ids |
userIds | array | yes | array containing integers defining the user ids |
dateSettings | object | no | object containing dateFrom and dateTo (both strings) that define the first and the last day of activity |
deleted | boolean | no | defines if deleted activities are being filtered |
navbar | object | no | object containing substring (string) |
Request body example¶
{
"filteredType": "CALENDAR",
"approval": "APPROVED",
"workingHours": true,
"activityTypeIds": [
{
"operator": "=",
"value": 1
}
],
"places": [
{
"operator": "=",
"value": 1
}
],
"projectIds": [
{
"operator": "=",
"value": 1
}
],
"issueIds": [
{
"operator": "=",
"value": 1
}
],
"teamIds": [
{
"operator": "=",
"value": 1
}
],
"userIds": [
{
"operator": "=",
"value": 1
}
],
"dateSettings": {
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z"
},
"deleted": true,
"navbar": {
"substring": "string"
}
}
curl --location 'https://example.juno.one/v1/activity/in-list/junofilter' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1MzU0MjEyfQ.J68rrbT6pA6uApOkVl58ID6R7oHWnmiaYdUpJQyyts-vCOfsXYNp7y8BkBKu3NEE5v87nW4vp3-8BxHF-y55hw' \
--header 'X-tenantID: example' \
--header 'Zone: GMT' \
--header 'Content-Type: application/json' \
--data '{
"filteredType": "CALENDAR",
"approval": "APPROVED",
"workingHours": true,
"activityTypeIds": [
{
"operator": "=",
"value": 1
}
],
"places": [
{
"operator": "=",
"value": 1
}
],
"projectIds": [
{
"operator": "=",
"value": 1
}
],
"issueIds": [
{
"operator": "=",
"value": 1
}
],
"teamIds": [
{
"operator": "=",
"value": 1
}
],
"userIds": [
{
"operator": "=",
"value": 12
}
],
"dateSettings": {
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z"
},
"deleted": true,
"navbar": {
"substring": "string"
}
}'
import requests
import json
url = "https://example.juno.one/v1/activity/in-list/junofilter"
payload = json.dumps({
"filteredType": "CALENDAR",
"approval": "APPROVED",
"workingHours": True,
"activityTypeIds": [
{
"operator": "=",
"value": 1
}
],
"places": [
{
"operator": "=",
"value": 1
}
],
"projectIds": [
{
"operator": "=",
"value": 1
}
],
"issueIds": [
{
"operator": "=",
"value": 1
}
],
"teamIds": [
{
"operator": "=",
"value": 1
}
],
"userIds": [
{
"operator": "=",
"value": 12
}
],
"dateSettings": {
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z"
},
"deleted": True,
"navbar": {
"substring": "string"
}
})
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1MzU0MjEyfQ.J68rrbT6pA6uApOkVl58ID6R7oHWnmiaYdUpJQyyts-vCOfsXYNp7y8BkBKu3NEE5v87nW4vp3-8BxHF-y55hw',
'X-tenantID': 'example',
'Zone': 'GMT',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n \"filteredType\": \"CALENDAR\",\n \"approval\": \"APPROVED\",\n \"workingHours\": true,\n \"activityTypeIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"places\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"projectIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"issueIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"teamIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"userIds\": [\n {\n \"operator\": \"=\",\n \"value\": 12\n }\n ],\n \"dateSettings\": {\n \"dateFrom\": \"2020-06-03T00:00:00.000Z\",\n \"dateTo\": \"2020-06-03T00:00:00.000Z\"\n },\n \"deleted\": true,\n \"navbar\": {\n \"substring\": \"string\"\n }\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/v1/activity/in-list/junofilter")
.post(body)
.addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1MzU0MjEyfQ.J68rrbT6pA6uApOkVl58ID6R7oHWnmiaYdUpJQyyts-vCOfsXYNp7y8BkBKu3NEE5v87nW4vp3-8BxHF-y55hw")
.addHeader("X-tenantID", "example")
.addHeader("Zone", "GMT")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of activity in list junofilter has the status 200
with following response body:
[
{
"id": 1,
"activityTypeId": {
"id": 1,
"name": "Andrej",
"description": "test",
"color": "#29a745",
"workingHours": true,
"approvable": true
},
"place": {
"id": 1,
"name": "test",
"type": "CUSTOM"
},
"author": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"issueId": {
"id": 2,
"name": "test"
},
"teamId": {
"id": 1,
"name": "test",
"deleted": false
},
"includeWeekends": true,
"description": "test",
"dateFrom": "2020-06-03T00:00:00.000Z",
"dateTo": "2020-06-03T00:00:00.000Z",
"timeFrom": "720",
"timeTo": "720",
"duration": 1,
"statusId": {
"id": 1,
"name": "test",
"color": "#29a745",
"positiveFinal": false,
"negativeFinal": false
},
"statusEditor": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"deleted": false,
"created_at": "2020-06-03T00:00:00.000Z"
}
]
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed