Skip to content

Commit c357a67

Browse files
committed
Make /data endpoint accept query parameter
1 parent 90511a0 commit c357a67

File tree

2 files changed

+62
-60
lines changed

2 files changed

+62
-60
lines changed

code/src/sixsq/nuvla/server/resources/spec/nuvlabox.cljc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,17 @@
9898
;; actions
9999

100100
(s/def ::dataset (s/coll-of ::core/nonblank-string))
101+
(s/def ::query (s/coll-of ::core/nonblank-string))
101102
(s/def ::filter (st/spec ::core/nonblank-string))
102103
(s/def ::from (st/spec ::core/timestamp))
103104
(s/def ::to (st/spec ::core/timestamp))
104105
(s/def ::granularity (st/spec (s/or :raw #{"raw"}
105106
:granularity-duration data-utils/granularity->duration)))
106107
(s/def ::custom-es-aggregations any?)
107-
(s/def ::bulk-data-body (su/only-keys-maps {:req-un [::dataset
108-
::from
108+
(s/def ::bulk-data-body (su/only-keys-maps {:req-un [::from
109109
::to]
110-
:opt-un [::filter
110+
:opt-un [::dataset
111+
::query
112+
::filter
111113
::granularity
112114
::custom-es-aggregations]}))

0 commit comments

Comments
 (0)