Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
corteza
corteza-server
Commits
7a6a0851
Commit
7a6a0851
authored
5 years ago
by
Denis Arh
Browse files
Options
Download
Email Patches
Plain Diff
Add limit/offset params, reformat all paging & sorting params
parent
7fec663f
2021.9.x
2020.12.x
2020.12.x-store-cache
2020.9.x
2021.3.x
2021.3.x-feature-invoker-runner
2021.3.x-sink
2021.3.x-wf-flaky-trace
2021.9.x-feature-discovery
2021.9.x-feature-idp-roles
2021.9.x-feature-ns-dup
2021.9.x-feature-report-scenarios
2021.9.x-feature-res-tr
2021.9.x-fix-wf-preprocessing-loop
2021.9.x-planetcrust
2021.9.x-wf-function-translations
2021.9.3
2021.9.3-planetcrust
2021.9.3-discovery
2021.9.2
2021.9.2-plugin-poc
2021.9.1
2021.9.0
2021.9.0-rc.4
2021.9.0-rc.3
2021.9.0-rc.2
2021.9.0-rc.1
2021.9.0-dev.5
2021.9.0-dev.4
2021.9.0-dev.3
2021.9.0-dev.2
2021.9.0-dev.1
2021.6.0-rc.3
2021.6.0-rc.2
2021.6.0-rc.1
2021.6.0-feature-relay
2021.3.13
2021.3.12
2021.3.11
2021.3.10
2021.3.9
2021.3.8
2021.3.7
2021.3.6
2021.3.5
2021.3.4
2021.3.3
2021.3.2
2021.3.1
2021.3.1-feature-fed-update
2021.3.0
2021.3.0-rc.4
2021.3.0-rc.3
2021.3.0-rc.2
2021.3.0-rc.1
2021.3.0-feature-workflow
2021.3.0-feature-fed-update
2020.12.3
2020.12.2
2020.12.1
2020.12.0
2020.12.0-rc.5
2020.12.0-rc.4
2020.12.0-rc.3
2020.12.0-rc.2
2020.12.0-rc.1
2020.12.0-feddatafix
2020.9.5
2020.9.4
2020.9.1
2020.9.0
2020.9.0-rc.1
2020.6.1
2020.6.0
No related merge requests found
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
487 additions
and
245 deletions
+487
-245
api/compose/spec.json
api/compose/spec.json
+29
-102
api/compose/spec/attachment.json
api/compose/spec/attachment.json
+11
-3
api/compose/spec/chart.json
api/compose/spec/chart.json
+12
-5
api/compose/spec/module.json
api/compose/spec/module.json
+12
-5
api/compose/spec/namespace.json
api/compose/spec/namespace.json
+12
-5
api/compose/spec/page.json
api/compose/spec/page.json
+12
-5
api/compose/spec/record.json
api/compose/spec/record.json
+12
-5
api/system/spec.json
api/system/spec.json
+20
-72
api/system/spec/application.json
api/system/spec/application.json
+12
-5
api/system/spec/reminder.json
api/system/spec/reminder.json
+12
-5
api/system/spec/role.json
api/system/spec/role.json
+12
-5
api/system/spec/user.json
api/system/spec/user.json
+15
-8
compose/rest/request/attachment.go
compose/rest/request/attachment.go
+46
-0
compose/rest/request/chart.go
compose/rest/request/chart.go
+46
-0
compose/rest/request/module.go
compose/rest/request/module.go
+46
-0
compose/rest/request/namespace.go
compose/rest/request/namespace.go
+46
-0
compose/rest/request/page.go
compose/rest/request/page.go
+46
-0
compose/rest/request/record.go
compose/rest/request/record.go
+46
-0
docs/compose/README.md
docs/compose/README.md
+23
-11
docs/system/README.md
docs/system/README.md
+17
-9
No files found.
api/compose/spec.json
View file @
7a6a0851
...
...
@@ -34,24 +34,11 @@
"required"
:
false
,
"title"
:
"Search by namespace slug"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"name"
:
"sort"
,
"type"
:
"string"
,
"required"
:
false
,
"title"
:
"Sort namespaces"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -244,24 +231,11 @@
"required"
:
false
,
"title"
:
"Search by handle"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -547,24 +521,11 @@
"required"
:
false
,
"title"
:
"Search by handle"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -779,24 +740,11 @@
"required"
:
false
,
"title"
:
"Filtering condition"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"name"
:
"sort"
,
"type"
:
"string"
,
"required"
:
false
,
"title"
:
"Sort field (default id desc)"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -1135,24 +1083,11 @@
"title"
:
"Search charts by handle"
,
"type"
:
"string"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort charts"
,
"type"
:
"string"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -1392,18 +1327,10 @@
"required"
:
false
,
"title"
:
"Filter attachments by field name"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
}
]
}
},
...
...
This diff is collapsed.
Click to expand it.
api/compose/spec/attachment.json
View file @
7a6a0851
...
...
@@ -70,15 +70,23 @@
"title"
:
"Filter attachments by field name"
,
"type"
:
"string"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
}
...
...
This diff is collapsed.
Click to expand it.
api/compose/spec/chart.json
View file @
7a6a0851
...
...
@@ -42,22 +42,29 @@
"title"
:
"Search charts by handle"
,
"type"
:
"string"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort charts"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/compose/spec/module.json
View file @
7a6a0851
...
...
@@ -50,22 +50,29 @@
"title"
:
"Search by handle"
,
"type"
:
"string"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/compose/spec/namespace.json
View file @
7a6a0851
...
...
@@ -33,22 +33,29 @@
"title"
:
"Search by namespace slug"
,
"type"
:
"string"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort namespaces"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/compose/spec/page.json
View file @
7a6a0851
...
...
@@ -48,22 +48,29 @@
"title"
:
"Search by handle"
,
"type"
:
"string"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/compose/spec/record.json
View file @
7a6a0851
...
...
@@ -70,22 +70,29 @@
"title"
:
"Filtering condition"
,
"type"
:
"string"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort field (default id desc)"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/system/spec.json
View file @
7a6a0851
...
...
@@ -444,24 +444,11 @@
"title"
:
"Exclude (0, default), include (1) or return only (2) achived roles"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"type"
:
"string"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -832,24 +819,11 @@
"title"
:
"Exclude (0, default), include (1) or return only (2) suspended users"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"type"
:
"string"
,
"required"
:
false
,
"title"
:
"Sort by (createdAt, updatedAt, deletedAt, suspendedAt, email, username, userID)"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -1158,24 +1132,11 @@
"title"
:
"Exclude (0, default), include (1) or return only (2) deleted roles"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"type"
:
"string"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
@@ -1493,24 +1454,11 @@
"title"
:
"Filter out dismissed reminders"
,
"type"
:
"bool"
},
{
"name"
:
"page"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Page number"
},
{
"name"
:
"perPage"
,
"type"
:
"uint"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"type"
:
"string"
}
{
"type"
:
"uint"
,
"name"
:
"limit"
,
"title"
:
"Limit"
},
{
"type"
:
"uint"
,
"name"
:
"offset"
,
"title"
:
"Offset"
},
{
"type"
:
"uint"
,
"name"
:
"page"
,
"title"
:
"Page number (1-based)"
},
{
"type"
:
"uint"
,
"name"
:
"perPage"
,
"title"
:
"Returned items per page (default 50)"
},
{
"type"
:
"string"
,
"name"
:
"sort"
,
"title"
:
"Sort items"
}
]
}
},
...
...
This diff is collapsed.
Click to expand it.
api/system/spec/application.json
View file @
7a6a0851
...
...
@@ -38,22 +38,29 @@
"title"
:
"Exclude (0, default), include (1) or return only (2) deleted roles"
,
"type"
:
"uint"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/system/spec/reminder.json
View file @
7a6a0851
...
...
@@ -66,22 +66,29 @@
"title"
:
"Filter out dismissed reminders"
,
"type"
:
"bool"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/system/spec/role.json
View file @
7a6a0851
...
...
@@ -36,22 +36,29 @@
"title"
:
"Exclude (0, default), include (1) or return only (2) achived roles"
,
"type"
:
"uint"
},
{
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
...
...
This diff is collapsed.
Click to expand it.
api/system/spec/user.json
View file @
7a6a0851
...
...
@@ -90,22 +90,29 @@
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"required"
:
false
,
"title"
:
"Sort by (createdAt, updatedAt, deletedAt, suspendedAt, email, username, userID)"
,
"type"
:
"string"
"name"
:
"limit"
,
"title"
:
"Limit"
,
"type"
:
"uint"
},
{
"name"
:
"offset"
,
"title"
:
"Offset"
,
"type"
:
"uint"
},
{
"name"
:
"page"
,
"required"
:
false
,
"title"
:
"Page number"
,
"title"
:
"Page number (1-based)"
,
"type"
:
"uint"
},
{
"name"
:
"perPage"
,
"required"
:
false
,
"title"
:
"Returned items per page"
,
"title"
:
"Returned items per page (default 50)"
,
"type"
:
"uint"
},
{
"name"
:
"sort"
,
"title"
:
"Sort items"
,
"type"
:
"string"
}
]
}
...
...
This diff is collapsed.
Click to expand it.
compose/rest/request/attachment.go
View file @
7a6a0851
...
...
@@ -48,6 +48,14 @@ type AttachmentList struct {
rawFieldName
string
FieldName
string
hasLimit
bool
rawLimit
string
Limit
uint
hasOffset
bool
rawOffset
string
Offset
uint
hasPage
bool
rawPage
string
Page
uint
...
...
@@ -86,6 +94,8 @@ func (r AttachmentList) Auditable() map[string]interface{} {
out
[
"moduleID"
]
=
r
.
ModuleID
out
[
"recordID"
]
=
r
.
RecordID
out
[
"fieldName"
]
=
r
.
FieldName
out
[
"limit"
]
=
r
.
Limit
out
[
"offset"
]
=
r
.
Offset
out
[
"page"
]
=
r
.
Page
out
[
"perPage"
]
=
r
.
PerPage
out
[
"sign"
]
=
r
.
Sign
...
...
@@ -136,6 +146,12 @@ func (r *AttachmentList) Fill(req *http.Request) (err error) {
if
val
,
ok
:=
get
[
"fieldName"
];
ok
{
r
.
FieldName
=
val
}
if
val
,
ok
:=
get
[
"limit"
];
ok
{
r
.
Limit
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"offset"
];
ok
{
r
.
Offset
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"page"
];
ok
{
r
.
Page
=
parseUint
(
val
)
}
...
...
@@ -604,6 +620,36 @@ func (r *AttachmentList) GetFieldName() string {
return
r
.
FieldName
}
// HasLimit returns true if limit was set
func
(
r
*
AttachmentList
)
HasLimit
()
bool
{
return
r
.
hasLimit
}
// RawLimit returns raw value of limit parameter
func
(
r
*
AttachmentList
)
RawLimit
()
string
{
return
r
.
rawLimit
}
// GetLimit returns casted value of limit parameter
func
(
r
*
AttachmentList
)
GetLimit
()
uint
{
return
r
.
Limit
}
// HasOffset returns true if offset was set
func
(
r
*
AttachmentList
)
HasOffset
()
bool
{
return
r
.
hasOffset
}
// RawOffset returns raw value of offset parameter
func
(
r
*
AttachmentList
)
RawOffset
()
string
{
return
r
.
rawOffset
}
// GetOffset returns casted value of offset parameter
func
(
r
*
AttachmentList
)
GetOffset
()
uint
{
return
r
.
Offset
}
// HasPage returns true if page was set
func
(
r
*
AttachmentList
)
HasPage
()
bool
{
return
r
.
hasPage
...
...
This diff is collapsed.
Click to expand it.
compose/rest/request/chart.go
View file @
7a6a0851
...
...
@@ -43,6 +43,14 @@ type ChartList struct {
rawHandle
string
Handle
string
hasLimit
bool
rawLimit
string
Limit
uint
hasOffset
bool
rawOffset
string
Offset
uint
hasPage
bool
rawPage
string
Page
uint
...
...
@@ -71,6 +79,8 @@ func (r ChartList) Auditable() map[string]interface{} {
out
[
"query"
]
=
r
.
Query
out
[
"handle"
]
=
r
.
Handle
out
[
"limit"
]
=
r
.
Limit
out
[
"offset"
]
=
r
.
Offset
out
[
"page"
]
=
r
.
Page
out
[
"perPage"
]
=
r
.
PerPage
out
[
"sort"
]
=
r
.
Sort
...
...
@@ -113,6 +123,12 @@ func (r *ChartList) Fill(req *http.Request) (err error) {
if
val
,
ok
:=
get
[
"handle"
];
ok
{
r
.
Handle
=
val
}
if
val
,
ok
:=
get
[
"limit"
];
ok
{
r
.
Limit
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"offset"
];
ok
{
r
.
Offset
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"page"
];
ok
{
r
.
Page
=
parseUint
(
val
)
}
...
...
@@ -482,6 +498,36 @@ func (r *ChartList) GetHandle() string {
return
r
.
Handle
}
// HasLimit returns true if limit was set
func
(
r
*
ChartList
)
HasLimit
()
bool
{
return
r
.
hasLimit
}
// RawLimit returns raw value of limit parameter
func
(
r
*
ChartList
)
RawLimit
()
string
{
return
r
.
rawLimit
}
// GetLimit returns casted value of limit parameter
func
(
r
*
ChartList
)
GetLimit
()
uint
{
return
r
.
Limit
}
// HasOffset returns true if offset was set
func
(
r
*
ChartList
)
HasOffset
()
bool
{
return
r
.
hasOffset
}
// RawOffset returns raw value of offset parameter
func
(
r
*
ChartList
)
RawOffset
()
string
{
return
r
.
rawOffset
}
// GetOffset returns casted value of offset parameter
func
(
r
*
ChartList
)
GetOffset
()
uint
{
return
r
.
Offset
}
// HasPage returns true if page was set
func
(
r
*
ChartList
)
HasPage
()
bool
{
return
r
.
hasPage
...
...
This diff is collapsed.
Click to expand it.
compose/rest/request/module.go
View file @
7a6a0851
...
...
@@ -48,6 +48,14 @@ type ModuleList struct {
rawHandle
string
Handle
string
hasLimit
bool
rawLimit
string
Limit
uint
hasOffset
bool
rawOffset
string
Offset
uint
hasPage
bool
rawPage
string
Page
uint
...
...
@@ -77,6 +85,8 @@ func (r ModuleList) Auditable() map[string]interface{} {
out
[
"query"
]
=
r
.
Query
out
[
"name"
]
=
r
.
Name
out
[
"handle"
]
=
r
.
Handle
out
[
"limit"
]
=
r
.
Limit
out
[
"offset"
]
=
r
.
Offset
out
[
"page"
]
=
r
.
Page
out
[
"perPage"
]
=
r
.
PerPage
out
[
"sort"
]
=
r
.
Sort
...
...
@@ -122,6 +132,12 @@ func (r *ModuleList) Fill(req *http.Request) (err error) {
if
val
,
ok
:=
get
[
"handle"
];
ok
{
r
.
Handle
=
val
}
if
val
,
ok
:=
get
[
"limit"
];
ok
{
r
.
Limit
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"offset"
];
ok
{
r
.
Offset
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"page"
];
ok
{
r
.
Page
=
parseUint
(
val
)
}
...
...
@@ -590,6 +606,36 @@ func (r *ModuleList) GetHandle() string {
return
r
.
Handle
}
// HasLimit returns true if limit was set
func
(
r
*
ModuleList
)
HasLimit
()
bool
{
return
r
.
hasLimit
}
// RawLimit returns raw value of limit parameter
func
(
r
*
ModuleList
)
RawLimit
()
string
{
return
r
.
rawLimit
}
// GetLimit returns casted value of limit parameter
func
(
r
*
ModuleList
)
GetLimit
()
uint
{
return
r
.
Limit
}
// HasOffset returns true if offset was set
func
(
r
*
ModuleList
)
HasOffset
()
bool
{
return
r
.
hasOffset
}
// RawOffset returns raw value of offset parameter
func
(
r
*
ModuleList
)
RawOffset
()
string
{
return
r
.
rawOffset
}
// GetOffset returns casted value of offset parameter
func
(
r
*
ModuleList
)
GetOffset
()
uint
{
return
r
.
Offset
}
// HasPage returns true if page was set
func
(
r
*
ModuleList
)
HasPage
()
bool
{
return
r
.
hasPage
...
...
This diff is collapsed.
Click to expand it.
compose/rest/request/namespace.go
View file @
7a6a0851
...
...
@@ -43,6 +43,14 @@ type NamespaceList struct {
rawSlug
string
Slug
string
hasLimit
bool
rawLimit
string
Limit
uint
hasOffset
bool
rawOffset
string
Offset
uint
hasPage
bool
rawPage
string
Page
uint
...
...
@@ -67,6 +75,8 @@ func (r NamespaceList) Auditable() map[string]interface{} {
out
[
"query"
]
=
r
.
Query
out
[
"slug"
]
=
r
.
Slug
out
[
"limit"
]
=
r
.
Limit
out
[
"offset"
]
=
r
.
Offset
out
[
"page"
]
=
r
.
Page
out
[
"perPage"
]
=
r
.
PerPage
out
[
"sort"
]
=
r
.
Sort
...
...
@@ -108,6 +118,12 @@ func (r *NamespaceList) Fill(req *http.Request) (err error) {
if
val
,
ok
:=
get
[
"slug"
];
ok
{
r
.
Slug
=
val
}
if
val
,
ok
:=
get
[
"limit"
];
ok
{
r
.
Limit
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"offset"
];
ok
{
r
.
Offset
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"page"
];
ok
{
r
.
Page
=
parseUint
(
val
)
}
...
...
@@ -524,6 +540,36 @@ func (r *NamespaceList) GetSlug() string {
return
r
.
Slug
}
// HasLimit returns true if limit was set
func
(
r
*
NamespaceList
)
HasLimit
()
bool
{
return
r
.
hasLimit
}
// RawLimit returns raw value of limit parameter
func
(
r
*
NamespaceList
)
RawLimit
()
string
{
return
r
.
rawLimit
}
// GetLimit returns casted value of limit parameter
func
(
r
*
NamespaceList
)
GetLimit
()
uint
{
return
r
.
Limit
}
// HasOffset returns true if offset was set
func
(
r
*
NamespaceList
)
HasOffset
()
bool
{
return
r
.
hasOffset
}
// RawOffset returns raw value of offset parameter
func
(
r
*
NamespaceList
)
RawOffset
()
string
{
return
r
.
rawOffset
}
// GetOffset returns casted value of offset parameter
func
(
r
*
NamespaceList
)
GetOffset
()
uint
{
return
r
.
Offset
}
// HasPage returns true if page was set
func
(
r
*
NamespaceList
)
HasPage
()
bool
{
return
r
.
hasPage
...
...
This diff is collapsed.
Click to expand it.
compose/rest/request/page.go
View file @
7a6a0851
...
...
@@ -46,6 +46,14 @@ type PageList struct {
rawHandle
string
Handle
string
hasLimit
bool
rawLimit
string
Limit
uint
hasOffset
bool
rawOffset
string
Offset
uint
hasPage
bool
rawPage
string
Page
uint
...
...
@@ -75,6 +83,8 @@ func (r PageList) Auditable() map[string]interface{} {
out
[
"selfID"
]
=
r
.
SelfID
out
[
"query"
]
=
r
.
Query
out
[
"handle"
]
=
r
.
Handle
out
[
"limit"
]
=
r
.
Limit
out
[
"offset"
]
=
r
.
Offset
out
[
"page"
]
=
r
.
Page
out
[
"perPage"
]
=
r
.
PerPage
out
[
"sort"
]
=
r
.
Sort
...
...
@@ -120,6 +130,12 @@ func (r *PageList) Fill(req *http.Request) (err error) {
if
val
,
ok
:=
get
[
"handle"
];
ok
{
r
.
Handle
=
val
}
if
val
,
ok
:=
get
[
"limit"
];
ok
{
r
.
Limit
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"offset"
];
ok
{
r
.
Offset
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"page"
];
ok
{
r
.
Page
=
parseUint
(
val
)
}
...
...
@@ -849,6 +865,36 @@ func (r *PageList) GetHandle() string {
return
r
.
Handle
}
// HasLimit returns true if limit was set
func
(
r
*
PageList
)
HasLimit
()
bool
{
return
r
.
hasLimit
}
// RawLimit returns raw value of limit parameter
func
(
r
*
PageList
)
RawLimit
()
string
{
return
r
.
rawLimit
}
// GetLimit returns casted value of limit parameter
func
(
r
*
PageList
)
GetLimit
()
uint
{
return
r
.
Limit
}
// HasOffset returns true if offset was set
func
(
r
*
PageList
)
HasOffset
()
bool
{
return
r
.
hasOffset
}
// RawOffset returns raw value of offset parameter
func
(
r
*
PageList
)
RawOffset
()
string
{
return
r
.
rawOffset
}
// GetOffset returns casted value of offset parameter
func
(
r
*
PageList
)
GetOffset
()
uint
{
return
r
.
Offset
}
// HasPage returns true if page was set
func
(
r
*
PageList
)
HasPage
()
bool
{
return
r
.
hasPage
...
...
This diff is collapsed.
Click to expand it.
compose/rest/request/record.go
View file @
7a6a0851
...
...
@@ -128,6 +128,14 @@ type RecordList struct {
rawFilter
string
Filter
string
hasLimit
bool
rawLimit
string
Limit
uint
hasOffset
bool
rawOffset
string
Offset
uint
hasPage
bool
rawPage
string
Page
uint
...
...
@@ -159,6 +167,8 @@ func (r RecordList) Auditable() map[string]interface{} {
var
out
=
map
[
string
]
interface
{}{}
out
[
"filter"
]
=
r
.
Filter
out
[
"limit"
]
=
r
.
Limit
out
[
"offset"
]
=
r
.
Offset
out
[
"page"
]
=
r
.
Page
out
[
"perPage"
]
=
r
.
PerPage
out
[
"sort"
]
=
r
.
Sort
...
...
@@ -199,6 +209,12 @@ func (r *RecordList) Fill(req *http.Request) (err error) {
if
val
,
ok
:=
get
[
"filter"
];
ok
{
r
.
Filter
=
val
}
if
val
,
ok
:=
get
[
"limit"
];
ok
{
r
.
Limit
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"offset"
];
ok
{
r
.
Offset
=
parseUint
(
val
)
}
if
val
,
ok
:=
get
[
"page"
];
ok
{
r
.
Page
=
parseUint
(
val
)
}
...
...
@@ -1373,6 +1389,36 @@ func (r *RecordList) GetFilter() string {
return
r
.
Filter
}
// HasLimit returns true if limit was set
func
(
r
*
RecordList
)
HasLimit
()
bool
{
return
r
.
hasLimit
}
// RawLimit returns raw value of limit parameter
func
(
r
*
RecordList
)
RawLimit
()
string
{
return
r
.
rawLimit
}
// GetLimit returns casted value of limit parameter
func
(
r
*
RecordList
)
GetLimit
()
uint
{
return
r
.
Limit
}
// HasOffset returns true if offset was set
func
(
r
*
RecordList
)
HasOffset
()
bool
{
return
r
.
hasOffset
}
// RawOffset returns raw value of offset parameter
func
(
r
*
RecordList
)
RawOffset
()
string
{
return
r
.
rawOffset
}
// GetOffset returns casted value of offset parameter
func
(
r
*
RecordList
)
GetOffset
()
uint
{
return
r
.
Offset
}
// HasPage returns true if page was set
func
(
r
*
RecordList
)
HasPage
()
bool
{
return
r
.
hasPage
...
...
This diff is collapsed.
Click to expand it.
docs/compose/README.md
View file @
7a6a0851
...
...
@@ -24,7 +24,9 @@
| moduleID | uint64 | GET | Filter attachments by module ID | N/A | NO |
| recordID | uint64 | GET | Filter attachments by record ID | N/A | NO |
| fieldName | string | GET | Filter attachments by field name | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sign | string | GET | Signature | N/A | NO |
| userID | uint64 | GET | User ID | N/A | NO |
...
...
@@ -203,9 +205,11 @@ Warning: implode(): Invalid arguments passed in /private/tmp/Users/darh/Work.cru
| --------- | ---- | ------ | ----------- | ------- | --------- |
| query | string | GET | Search query to match against charts | N/A | NO |
| handle | string | GET | Search charts by handle | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort
chart
s | N/A | NO |
| sort | string | GET | Sort
item
s | N/A | NO |
| namespaceID | uint64 | PATH | Namespace ID | N/A | YES |
## List/read charts
...
...
@@ -307,9 +311,11 @@ Compose module definitions
| query | string | GET | Search query | N/A | NO |
| name | string | GET | Search by name | N/A | NO |
| handle | string | GET | Search by handle | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort | N/A | NO |
| sort | string | GET | Sort
items
| N/A | NO |
| namespaceID | uint64 | PATH | Namespace ID | N/A | YES |
## Create module
...
...
@@ -426,9 +432,11 @@ Compose module definitions
| --------- | ---- | ------ | ----------- | ------- | --------- |
| query | string | GET | Search query | N/A | NO |
| slug | string | GET | Search by namespace slug | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort
namespace
s | N/A | NO |
| sort | string | GET | Sort
item
s | N/A | NO |
## Create namespace
...
...
@@ -577,9 +585,11 @@ Compose pages
| selfID | uint64 | GET | Parent page ID | N/A | NO |
| query | string | GET | Search query | N/A | NO |
| handle | string | GET | Search by handle | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort | N/A | NO |
| sort | string | GET | Sort
items
| N/A | NO |
| namespaceID | uint64 | PATH | Namespace ID | N/A | YES |
## Create page
...
...
@@ -861,9 +871,11 @@ Compose records
| Parameter | Type | Method | Description | Default | Required? |
| --------- | ---- | ------ | ----------- | ------- | --------- |
| filter | string | GET | Filtering condition | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort
field (default id desc)
| N/A | NO |
| sort | string | GET | Sort
items
| N/A | NO |
| namespaceID | uint64 | PATH | Namespace ID | N/A | YES |
| moduleID | uint64 | PATH | Module ID | N/A | YES |
...
...
This diff is collapsed.
Click to expand it.
docs/system/README.md
View file @
7a6a0851
...
...
@@ -25,9 +25,11 @@
| name | string | GET | Application name | N/A | NO |
| query | string | GET | Filter applications | N/A | NO |
| deleted | uint | GET | Exclude (0, default), include (1) or return only (2) deleted roles | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort | N/A | NO |
| sort | string | GET | Sort
items
| N/A | NO |
## Create application
...
...
@@ -602,9 +604,11 @@ Organisations represent a top-level grouping entity. There may be many organisat
| scheduledUntil |
*
time.Time | GET | Only reminders up to this time (included) | N/A | NO |
| scheduledOnly | bool | GET | Only scheduled reminders | N/A | NO |
| excludeDismissed | bool | GET | Filter out dismissed reminders | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort | N/A | NO |
| sort | string | GET | Sort
items
| N/A | NO |
## Add new reminder
...
...
@@ -739,9 +743,11 @@ An organisation may have many roles. Roles may have many channels available. Acc
| query | string | GET | Search query | N/A | NO |
| deleted | uint | GET | Exclude (0, default), include (1) or return only (2) deleted roles | N/A | NO |
| archived | uint | GET | Exclude (0, default), include (1) or return only (2) achived roles | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort | N/A | NO |
| sort | string | GET | Sort
items
| N/A | NO |
## Update role details
...
...
@@ -1101,9 +1107,11 @@ Warning: implode(): Invalid arguments passed in /private/tmp/Users/darh/Work.cru
| incSuspended | bool | GET | [Deprecated] Include suspended users | N/A | NO |
| deleted | uint | GET | Exclude (0, default), include (1) or return only (2) deleted users | N/A | NO |
| suspended | uint | GET | Exclude (0, default), include (1) or return only (2) suspended users | N/A | NO |
| sort | string | GET | Sort by (createdAt, updatedAt, deletedAt, suspendedAt, email, username, userID) | N/A | NO |
| page | uint | GET | Page number | N/A | NO |
| perPage | uint | GET | Returned items per page | N/A | NO |
| limit | uint | GET | Limit | N/A | NO |
| offset | uint | GET | Offset | N/A | NO |
| page | uint | GET | Page number (1-based) | N/A | NO |
| perPage | uint | GET | Returned items per page (default 50) | N/A | NO |
| sort | string | GET | Sort items | N/A | NO |
## Create user
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help