File tree Expand file tree Collapse file tree 5 files changed +25
-32
lines changed
tests/CTS/methods/requests/search Expand file tree Collapse file tree 5 files changed +25
-32
lines changed Original file line number Diff line number Diff line change 3
3
- Records
4
4
operationId : partialUpdateObject
5
5
summary : Partially update an object.
6
+ x-codegen-request-body-name : attributesToUpdate
6
7
description : >
7
8
Update one or more attributes of an existing object.
8
9
@@ -22,16 +23,14 @@ post:
22
23
default : true
23
24
requestBody :
24
25
required : true
25
- description : List of attributes to update.
26
+ description : Map of attribute(s) to update.
26
27
content :
27
28
application/json :
28
29
schema :
29
- type : array
30
- items :
31
- type : object
32
- description : Attribute to update.
33
- additionalProperties :
34
- $ref : ' common/schemas.yml#/attributeToUpdate'
30
+ type : object
31
+ description : Attribute(s) to update.
32
+ additionalProperties :
33
+ $ref : ' common/schemas.yml#/attributeToUpdate'
35
34
responses :
36
35
' 200 ' :
37
36
$ref : ' ../../../common/responses/UpdatedAtWithObjectId.yml'
Original file line number Diff line number Diff line change 1
- rules :
2
- type : array
3
- description : Rules to add.
4
- items :
5
- $ref : ' #/rule'
6
-
7
1
rule :
8
2
type : object
9
3
description : Rule object.
Original file line number Diff line number Diff line change 4
4
operationId : saveRules
5
5
summary : Save a batch of rules.
6
6
description : Create/update multiple rules objects at once.
7
+ x-codegen-request-body-name : rules
7
8
parameters :
8
9
- $ref : ' ../../../common/parameters.yml#/IndexName'
9
10
- $ref : ' ../../../common/parameters.yml#/ForwardToReplicas'
13
14
content :
14
15
application/json :
15
16
schema :
16
- $ref : ' common/schemas.yml#/rules'
17
+ type : array
18
+ description : Rules to add.
19
+ items :
20
+ $ref : ' common/schemas.yml#/rule'
17
21
responses :
18
22
' 200 ' :
19
23
$ref : ' ../../../common/responses/UpdatedAt.yml'
Original file line number Diff line number Diff line change 3
3
"parameters" : {
4
4
"indexName" : " theIndexName" ,
5
5
"objectID" : " uniqueID" ,
6
- "attributeToUpdate" : [
7
- {
8
- "id1" : " test" ,
9
- "id2" : {
10
- "_operation" : " AddUnique" ,
11
- "value" : " test2"
12
- }
6
+ "attributesToUpdate" : {
7
+ "id1" : " test" ,
8
+ "id2" : {
9
+ "_operation" : " AddUnique" ,
10
+ "value" : " test2"
13
11
}
14
- ] ,
12
+ } ,
15
13
"createIfNotExists" : true
16
14
},
17
15
"request" : {
18
16
"path" : " /1/indexes/theIndexName/uniqueID/partial" ,
19
17
"method" : " POST" ,
20
- "body" : [
21
- {
22
- "id1" : " test" ,
23
- "id2" : {
24
- "_operation" : " AddUnique" ,
25
- "value" : " test2"
26
- }
18
+ "body" : {
19
+ "id1" : " test" ,
20
+ "id2" : {
21
+ "_operation" : " AddUnique" ,
22
+ "value" : " test2"
27
23
}
28
- ] ,
24
+ } ,
29
25
"queryParameters" : {
30
26
"createIfNotExists" : " true"
31
27
}
Original file line number Diff line number Diff line change 3
3
"testName" : " saveRules with minimal parameters" ,
4
4
"parameters" : {
5
5
"indexName" : " indexName" ,
6
- "rule " : [
6
+ "rules " : [
7
7
{
8
8
"objectID" : " a-rule-id" ,
9
9
"conditions" : [
53
53
"testName" : " saveRules with all parameters" ,
54
54
"parameters" : {
55
55
"indexName" : " indexName" ,
56
- "rule " : [
56
+ "rules " : [
57
57
{
58
58
"objectID" : " id1" ,
59
59
"conditions" : [
You can’t perform that action at this time.
0 commit comments