File tree Expand file tree Collapse file tree 2 files changed +116
-0
lines changed
tests/CTS/requests/composition-full Expand file tree Collapse file tree 2 files changed +116
-0
lines changed Original file line number Diff line number Diff line change 6161 }
6262 }
6363 }
64+ },
65+ {
66+ "parameters" : {
67+ "compositionID" : " my-external-injection-compo" ,
68+ "composition" : {
69+ "objectID" : " my-external-injection-compo" ,
70+ "name" : " my first composition" ,
71+ "behavior" : {
72+ "injection" : {
73+ "main" : {
74+ "source" : {
75+ "search" : {
76+ "index" : " foo"
77+ }
78+ }
79+ },
80+ "injectedItems" : [
81+ {
82+ "key" : " injectedItem1" ,
83+ "source" : {
84+ "external" : {
85+ "index" : " foo" ,
86+ "ordering" : " userDefined" ,
87+ "params" : {
88+ "filters" : " brand:adidas"
89+ }
90+ }
91+ },
92+ "position" : 2 ,
93+ "length" : 1
94+ }
95+ ]
96+ }
97+ }
98+ }
99+ },
100+ "request" : {
101+ "path" : " /1/compositions/my-external-injection-compo" ,
102+ "method" : " PUT" ,
103+ "body" : {
104+ "objectID" : " my-external-injection-compo" ,
105+ "name" : " my first composition" ,
106+ "behavior" : {
107+ "injection" : {
108+ "main" : {
109+ "source" : {
110+ "search" : {
111+ "index" : " foo"
112+ }
113+ }
114+ },
115+ "injectedItems" : [
116+ {
117+ "key" : " injectedItem1" ,
118+ "source" : {
119+ "external" : {
120+ "index" : " foo" ,
121+ "ordering" : " userDefined" ,
122+ "params" : {
123+ "filters" : " brand:adidas"
124+ }
125+ }
126+ },
127+ "position" : 2 ,
128+ "length" : 1
129+ }
130+ ]
131+ }
132+ }
133+ }
134+ }
64135 }
65136]
Original file line number Diff line number Diff line change 1313 "params" : { "query" : " batman" }
1414 }
1515 }
16+ },
17+ {
18+ "parameters" : {
19+ "compositionID" : " foo" ,
20+ "requestBody" : {
21+ "params" : {
22+ "query" : " batman" ,
23+ "injectedItems" : {
24+ "items" : [
25+ {
26+ "objectID" : " my-object-1"
27+ },
28+ {
29+ "objectID" : " my-object-2" ,
30+ "metadata" : {
31+ "my-key" : " my-value"
32+ }
33+ }
34+ ]
35+ }
36+ }
37+ }
38+ },
39+ "request" : {
40+ "path" : " /1/compositions/foo/run" ,
41+ "method" : " POST" ,
42+ "body" : {
43+ "params" : {
44+ "query" : " batman" ,
45+ "injectedItems" : {
46+ "items" : [
47+ {
48+ "objectID" : " my-object-1"
49+ },
50+ {
51+ "objectID" : " my-object-2" ,
52+ "metadata" : {
53+ "my-key" : " my-value"
54+ }
55+ }
56+ ]
57+ }
58+ }
59+ }
60+ }
1661 }
1762]
You can’t perform that action at this time.
0 commit comments