This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
swagger.json
14501 lines (14501 loc) · 495 KB
/
swagger.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"basePath": "/s/-/dw/shop/20.4",
"consumes": [
"application/json",
"text/xml",
"application/xml"
],
"definitions": {
"approaching_discount": {
"description": "Document representing a note to an object.",
"properties": {
"condition_threshold": {
"description": "The total amount needed to receive the discount.",
"format": "double",
"type": "number"
},
"discount": {
"$ref": "#/definitions/discount",
"description": "The discount the customer can receive if eligible."
},
"merchandise_total": {
"description": "The amount the customer basket contributes towards the purchase condition.",
"format": "double",
"type": "number"
},
"promotion_link": {
"$ref": "#/definitions/promotion_link",
"description": "The link to details of the promotion associated with this discount."
},
"shipment_id": {
"description": "The unique id of the shipment the discount relates to.",
"type": "string"
},
"shipping_methods": {
"description": "The shipping methods the promotion relates to.",
"items": {
"$ref": "#/definitions/shipping_method"
},
"type": "array"
},
"type": {
"description": "The type of the approaching discount (\"order\" or \"shipping\").",
"type": "string"
}
}
},
"approaching_discount_result": {
"description": "A result of a approaching discount request.",
"properties": {
"approaching_discounts": {
"description": "Lists approaching discounts.",
"items": {
"$ref": "#/definitions/approaching_discount"
},
"type": "array"
}
}
},
"auth_request": {
"description": "Document representing the authentication request type.",
"properties": {
"type": {
"description": "Type of authentication request: guest, login (credentials), refresh or session.",
"enum": [
"guest",
"credentials",
"refresh",
"session"
],
"type": "string"
}
},
"required": [
"type"
]
},
"basket": {
"description": "Document representing a basket.\n ",
"properties": {
"adjusted_merchandize_total_tax": {
"description": "The products tax after discounts applying in purchase currency.\n\n Adjusted merchandize prices represent the sum of product prices before\n services such as shipping have been added, but after adjustment from\n promotions have been added.",
"format": "double",
"type": "number"
},
"adjusted_shipping_total_tax": {
"description": "The tax of all shipping line items of the line item container after\n shipping adjustments have been applied.",
"format": "double",
"type": "number"
},
"agent_basket": {
"description": "Is the basket created by an agent?",
"type": "boolean"
},
"basket_id": {
"description": "The unique identifier for the basket.",
"type": "string"
},
"billing_address": {
"$ref": "#/definitions/order_address",
"description": "The billing address. This property is part of basket checkout information only."
},
"bonus_discount_line_items": {
"description": "The bonus discount line items of the line item container.",
"items": {
"$ref": "#/definitions/bonus_discount_line_item"
},
"type": "array"
},
"c_sessionAddressBook": {
"format": "text",
"x-label": {
"default": "Session Address Book"
},
"type": "string"
},
"channel_type": {
"description": "The sales channel for the order.\n \n This is a read-only attribute that can't be modified by an OCAPI call. For OCAPI, the sales channel is determined\n based on the client ID and token used for the OCAPI call. Usually, a customer-based authentication sets the\n channel to Storefront, and an agent-based authentication sets it to CallCenter. Using applications that use other\n client IDs for OCAPI calls, like Customer Service Center, will set different channel types. To modify the channel\n type in OCAPI, use a hook. *\n ",
"enum": [
"storefront",
"callcenter",
"marketplace",
"dss",
"store",
"pinterest",
"twitter",
"facebookads",
"subscriptions",
"onlinereservation",
"customerservicecenter",
"instagramcommerce"
],
"x-enum-labels": [
{
"default": "Storefront"
},
{
"default": "Call Center"
},
{
"default": "Marketplace"
},
{
"default": "DSS"
},
{
"default": "Store"
},
{
"default": "Pinterest"
},
{
"default": "Twitter"
},
{
"default": "Facebook Ads"
},
{
"default": "Subscriptions"
},
{
"default": "Online Reservation"
},
{
"default": "Customer Service Center"
},
{
"default": "Instagram Commerce"
}
],
"x-label": {
"default": "Channel Type"
},
"readOnly": true,
"type": "string"
},
"coupon_items": {
"description": "The sorted array of coupon items. This array can be empty.",
"items": {
"$ref": "#/definitions/coupon_item"
},
"type": "array"
},
"creation_date": {
"description": "Returns the value of attribute 'creationDate'.",
"format": "date-time",
"x-label": {
"default": "Creation Date"
},
"readOnly": true,
"type": "string"
},
"currency": {
"description": "The ISO 4217 mnemonic code of the currency.",
"type": "string"
},
"customer_info": {
"$ref": "#/definitions/customer_info",
"description": "The customer information for logged in customers. This property is part of basket checkout information only."
},
"gift_certificate_items": {
"description": "The sorted array of gift certificate line items. This array can be empty.",
"items": {
"$ref": "#/definitions/gift_certificate_item"
},
"type": "array"
},
"inventory_reservation_expiry": {
"description": "",
"format": "date-time",
"x-label": {
"default": "Inventory Reservation Expiry"
},
"type": "string"
},
"last_modified": {
"description": "Returns the value of attribute 'lastModified'.",
"format": "date-time",
"x-label": {
"default": "Last Modified"
},
"readOnly": true,
"type": "string"
},
"merchandize_total_tax": {
"description": "The products total tax in purchase currency.\n\n Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have\n been added.",
"format": "double",
"type": "number"
},
"notes": {
"$ref": "#/definitions/simple_link",
"description": "The notes for the line item container."
},
"order_price_adjustments": {
"description": "The array of order level price adjustments. This array can be empty.",
"items": {
"$ref": "#/definitions/price_adjustment"
},
"type": "array"
},
"order_total": {
"description": "The total price of the order, including products, shipping and tax. This property is part of basket checkout\n information only.",
"format": "double",
"x-label": {
"default": "Order Total"
},
"type": "number"
},
"payment_instruments": {
"description": "The payment instruments list for the order.",
"items": {
"$ref": "#/definitions/order_payment_instrument"
},
"type": "array"
},
"product_items": {
"description": "The sorted array of product items (up to a maximum of 50 items). This array can be empty.",
"items": {
"$ref": "#/definitions/product_item"
},
"type": "array"
},
"product_sub_total": {
"description": "The total price of all product items after all product discounts.\n Depending on taxation policy the returned price is net or gross.",
"format": "double",
"type": "number"
},
"product_total": {
"description": "The total price of all product items after all product and order discounts.\n Depending on taxation policy the returned price is net or gross.",
"format": "double",
"type": "number"
},
"shipments": {
"description": "The array of shipments. This property is part of basket checkout information only.",
"items": {
"$ref": "#/definitions/shipment"
},
"type": "array"
},
"shipping_items": {
"description": "The sorted array of shipping items. This array can be empty.",
"items": {
"$ref": "#/definitions/shipping_item"
},
"type": "array"
},
"shipping_total": {
"description": "The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes\n tax if taxation policy is gross. This property is part of basket checkout information only.",
"format": "double",
"type": "number"
},
"shipping_total_tax": {
"description": "The tax of all shipping line items of the line item container before\n shipping adjustments have been applied.",
"format": "double",
"type": "number"
},
"source_code": {
"description": "Gets the source code assigned to this basket.",
"x-label": {
"default": "Source Code"
},
"type": "string"
},
"tax_total": {
"description": "The total tax amount of the order. This property is part of basket checkout information only.",
"format": "double",
"type": "number"
},
"taxation": {
"description": "The taxation the line item container is based on.",
"enum": [
"gross",
"net"
],
"type": "string"
}
}
},
"basket_payment_instrument_request": {
"description": "Document representing a basket payment instrument request.",
"properties": {
"amount": {
"description": "The payment transaction amount.",
"format": "double",
"x-label": {
"default": "Amount"
},
"type": "number"
},
"bank_routing_number": {
"description": "The bank routing number.",
"maxLength": 256,
"type": "string"
},
"customer_payment_instrument_id": {
"description": "The id of a customer payment instrument.",
"type": "string"
},
"gift_certificate_code": {
"description": "The gift certificate code.",
"x-label": {
"default": "Gift Code"
},
"maxLength": 256,
"type": "string"
},
"payment_bank_account": {
"$ref": "#/definitions/payment_bank_account_request",
"description": "The payment bank account request data."
},
"payment_card": {
"$ref": "#/definitions/order_payment_card_request",
"description": "The payment card."
},
"payment_method_id": {
"description": "The payment method id. Optional if a customer payment instrument id is specified.",
"maxLength": 256,
"type": "string"
}
}
},
"basket_reference": {
"description": "Reference to a basket.",
"properties": {
"basket_id": {
"description": "The unique identifier for the basket.",
"type": "string"
},
"customer_id": {
"description": "The unique identifier for the customer.",
"maxLength": 100,
"type": "string"
}
},
"required": [
"basket_id",
"customer_id"
]
},
"baskets_result": {
"description": "Result document containing an array of baskets.",
"properties": {
"baskets": {
"description": "The list of baskets for a customer.",
"items": {
"$ref": "#/definitions/basket"
},
"type": "array"
},
"total": {
"description": "The total number of baskets.",
"format": "int32",
"type": "integer"
}
}
},
"bonus_discount_line_item": {
"description": "Document representing a bonus discount line item",
"properties": {
"bonus_products": {
"description": "The list of links to the bonus products the customer can choose from.",
"items": {
"$ref": "#/definitions/product_details_link"
},
"type": "array"
},
"coupon_code": {
"description": "The coupon code that triggered the promotion, if applicable.",
"type": "string"
},
"id": {
"description": "The ID of the line item.",
"type": "string"
},
"max_bonus_items": {
"description": "The maximum number of bonus items the user can select for this promotion.",
"format": "int32",
"type": "integer"
},
"promotion_id": {
"description": "The ID of the promotion which triggered the creation of the line item.",
"type": "string"
}
}
},
"bool_filter": {
"description": "Document representing a boolean filter.\n ",
"properties": {
"filters": {
"description": "A list of filters, which are logically combined by an operator.",
"items": {
"$ref": "#/definitions/filter"
},
"x-sub_types": {
"range_filter": "#/definitions/range_filter",
"bool_filter": "#/definitions/bool_filter",
"query_filter": "#/definitions/query_filter",
"term_filter": "#/definitions/term_filter",
"range2_filter": "#/definitions/range2_filter"
},
"type": "array"
},
"operator": {
"description": "The logical operator the filters are combined with.",
"enum": [
"and",
"or",
"not"
],
"type": "string"
}
},
"required": [
"operator"
]
},
"bool_query": {
"description": "A boolean query allows construction of full logical expression trees consisting of other queries (usually term and text\nqueries). A boolean query basically has 3 sets of clauses that 'must', 'should' and / or 'must not' match. If 'must',\n'must_not', or 'should' appear in the same boolean query, they are combined logically using the AND operator.\n",
"properties": {
"must": {
"description": "List of queries that must match.",
"items": {
"$ref": "#/definitions/query"
},
"x-sub_types": {
"nested_query": "#/definitions/nested_query",
"filtered_query": "#/definitions/filtered_query",
"text_query": "#/definitions/text_query",
"match_all_query": "#/definitions/match_all_query",
"term_query": "#/definitions/term_query",
"bool_query": "#/definitions/bool_query"
},
"type": "array"
},
"must_not": {
"description": "List of queries that must not match.",
"items": {
"$ref": "#/definitions/query"
},
"x-sub_types": {
"nested_query": "#/definitions/nested_query",
"filtered_query": "#/definitions/filtered_query",
"text_query": "#/definitions/text_query",
"match_all_query": "#/definitions/match_all_query",
"term_query": "#/definitions/term_query",
"bool_query": "#/definitions/bool_query"
},
"type": "array"
},
"should": {
"description": "List of queries that should match.",
"items": {
"$ref": "#/definitions/query"
},
"x-sub_types": {
"nested_query": "#/definitions/nested_query",
"filtered_query": "#/definitions/filtered_query",
"text_query": "#/definitions/text_query",
"match_all_query": "#/definitions/match_all_query",
"term_query": "#/definitions/term_query",
"bool_query": "#/definitions/bool_query"
},
"type": "array"
}
}
},
"bundled_product": {
"description": "Document representing a bundled product within a product bundle.",
"properties": {
"id": {
"type": "string"
},
"product": {
"$ref": "#/definitions/product",
"description": "The product being bundled."
},
"quantity": {
"description": "For the product being bundled, the quantity added to the bundle.",
"format": "double",
"type": "number"
}
}
},
"category": {
"description": "Document representing a category.",
"properties": {
"c_alternativeUrl": {
"description": "Renders an alternative URL in main navigation. Uses Salesforce Commerce Cloud content url notation. For example: $url('Account-Show')$ or normal URL http://xchange.demandware.com",
"format": "html",
"x-label": {
"default": "Alternative URL"
},
"type": "string"
},
"c_catBannerID": {
"description": "Used to define the content asset used to populate a grid page banner for a category. This value is applied to all sub-category navigation (cascading) if no specific catBannerID has been defined for a sub-category.",
"x-label": {
"default": "Category Banner ID"
},
"type": "string"
},
"c_customCSSFile": {
"description": "Use this attribute to apply custom styles for this category.",
"x-label": {
"default": "Custom CSS File"
},
"type": "string"
},
"c_enableCompare": {
"description": "Used to define if/when the Compare feature is to be visualized in the storefront based on navigation. If enableCompare = FALSE, no Compare checkboxes will be displayed in the grid view. If enableCompare = TRUE, the category (and its children) will support the Compare feature.",
"x-label": {
"default": "Enable Compare"
},
"type": "boolean"
},
"c_headerMenuBanner": {
"format": "html",
"x-label": {
"default": "Header Menu Banner"
},
"type": "string"
},
"c_headerMenuOrientation": {
"description": "Which way to orient the menu and optional header menu HTML. Vertical will list all in one line. Horizontal will list in columns.",
"enum": [
"Horizontal",
"Vertical"
],
"x-enum-labels": [
{
"default": "Horizontal"
},
{
"default": "Vertical"
}
],
"x-label": {
"default": "Header Menu Orientation"
},
"type": "string"
},
"c_showInMenu": {
"description": "Used to indicate that a category (such as Mens -> Footwear -> Boots) will display in the roll-over navigation. A sub-category only shows if also the parent category is marked as showInMenu. Up to three category levels are shown in roll-over navigation.",
"x-label": {
"default": "Show in Menu Navigation"
},
"type": "boolean"
},
"c_sizeChartID": {
"description": "Used to define the content asset ID of the Size Chart that is appropriate for products whose PRIMARY category is the associated category (and its children). Whenever a product detail page (or quick view) is rendered, the Size Chart link is populated based on the value of this attribute for the products primary categorization. If not defined, NO size chart link is displayed.",
"x-label": {
"default": "Size Chart"
},
"type": "string"
},
"c_slotBannerHtml": {
"format": "html",
"x-label": {
"default": "Slot Banner HTML"
},
"type": "string"
},
"c_slotBannerImage": {
"description": "Image used on either the top or bottom slot on the category landing pages.",
"x-label": {
"default": "Category Landing Slot Image"
},
"type": "string"
},
"categories": {
"description": "Array of subcategories. Can be empty.",
"items": {
"$ref": "#/definitions/category"
},
"type": "array"
},
"description": {
"description": "The localized description of the category.",
"x-label": {
"default": "Description"
},
"type": "string"
},
"id": {
"description": "The id of the category.",
"x-label": {
"default": "ID"
},
"type": "string"
},
"image": {
"description": "The URL to the category image.",
"x-label": {
"default": "Standard Image"
},
"type": "string"
},
"name": {
"description": "The localized name of the category.",
"x-label": {
"default": "Name"
},
"type": "string"
},
"page_description": {
"description": "The localized page description of the category.",
"x-label": {
"default": "Page Description"
},
"type": "string"
},
"page_keywords": {
"description": "The localized page keywords of the category.",
"x-label": {
"default": "Page Keywords"
},
"type": "string"
},
"page_title": {
"description": "The localized page title of the category.",
"x-label": {
"default": "Page Title"
},
"type": "string"
},
"parent_category_id": {
"description": "The id of the parent category.",
"type": "string"
},
"thumbnail": {
"description": "The URL to the category thumbnail.",
"x-label": {
"default": "Thumbnail Image"
},
"type": "string"
}
}
},
"category_result": {
"description": "Result document containing an array of categories.",
"properties": {
"count": {
"description": "The number of returned documents.",
"format": "int32",
"type": "integer"
},
"data": {
"description": "The array of category documents.",
"items": {
"$ref": "#/definitions/category"
},
"type": "array"
},
"total": {
"description": "The total number of documents.",
"format": "int32",
"type": "integer"
}
}
},
"content": {
"description": "Document representing a content asset.",
"properties": {
"c_Year": {
"x-label": {
"default": "Year"
},
"type": "string"
},
"c_body": {
"format": "html",
"x-label": {
"default": "Body"
},
"type": "string"
},
"c_customCSSFile": {
"description": "Use this attribute to apply custom styles for this content asset.",
"x-label": {
"default": "Custom CSS File"
},
"type": "string"
},
"description": {
"description": "The localized content asset description.",
"x-label": {
"default": "Description"
},
"type": "string"
},
"id": {
"description": "The id of the content asset.",
"x-label": {
"default": "ID"
},
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"name": {
"description": "The localized content asset name.",
"x-label": {
"default": "Name"
},
"type": "string"
},
"page_description": {
"description": "The localized content asset page description.",
"x-label": {
"default": "Page Description"
},
"type": "string"
},
"page_keywords": {
"description": "The localized content asset page description.",
"x-label": {
"default": "Page Keywords"
},
"type": "string"
},
"page_title": {
"description": "The localized content asset page title.",
"x-label": {
"default": "Page Title"
},
"type": "string"
}
},
"required": [
"id"
]
},
"content_folder": {
"description": "Document representing a content folder.",
"properties": {
"c_customCSSFile": {
"description": "Use this attribute to apply custom styles for this category.",
"x-label": {
"default": "Custom CSS File"
},
"type": "string"
},
"description": {
"description": "The localized content folder description.",
"x-label": {
"default": "Description"
},
"type": "string"
},
"folders": {
"description": "The array of content subfolders. This array can be empty.",
"items": {
"$ref": "#/definitions/content_folder"
},
"type": "array"
},
"id": {
"description": "The id of the content folder.",
"x-label": {
"default": "ID"
},
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"name": {
"description": "The localized content folder name.",
"x-label": {
"default": "Name"
},
"type": "string"
},
"page_description": {
"description": "The localized content folder page description.",
"x-label": {
"default": "Page Description"
},
"type": "string"
},
"page_keywords": {
"description": "The localized content folder page description.",
"x-label": {
"default": "Page Keywords"
},
"type": "string"
},
"page_title": {
"description": "The localized content folder page title.",
"x-label": {
"default": "Page Title"
},
"type": "string"
},
"parent_folder_id": {
"description": "The id of the parent content folder.",
"type": "string"
}
},
"required": [
"id"
]
},
"content_folder_result": {
"description": "Result document containing an array of content folders.",
"properties": {
"count": {
"description": "The number of returned documents.",
"format": "int32",
"type": "integer"
},
"data": {
"description": "The array of content folder documents.",
"items": {
"$ref": "#/definitions/content_folder"
},
"type": "array"
},
"total": {
"description": "The total number of documents.",
"format": "int32",
"type": "integer"
}
}
},
"content_result": {
"description": "Result document containing an array of content assets.",
"properties": {
"count": {
"description": "The number of returned documents.",
"format": "int32",
"type": "integer"
},
"data": {
"description": "The array of content assets.",
"items": {
"$ref": "#/definitions/content"
},
"type": "array"
},
"total": {
"description": "The total number of documents.",
"format": "int32",
"type": "integer"
}
}
},
"content_search_refinement": {
"description": "Document representing a search refinement attribute.",
"properties": {
"attribute_id": {
"description": "The id of the search refinement attribute. In the case of an attribute refinement, this is the\n attribute id. Custom attributes are marked by the prefix \"c_\".",
"type": "string"
},
"label": {
"description": "The localized label of the refinement.",
"type": "string"
},
"values": {
"description": "The sorted array of refinement values. The array can be empty.",
"items": {
"$ref": "#/definitions/content_search_refinement_value"
},
"type": "array"
}
},
"required": [
"attribute_id"
]
},
"content_search_refinement_value": {
"description": "Document representing a search refinement value.",
"properties": {
"description": {
"description": "The localized description of the refinement value.",
"type": "string"
},
"hit_count": {
"description": "The number of search hits (0 or more) when selecting the refinement value.",
"format": "int32",
"type": "integer"
},
"label": {
"description": "The localized label of the refinement value.",
"type": "string"
},
"presentation_id": {
"description": "The optional presentation id associated with the refinement value.\n The presentation id can be used, for example, to associate an id with\n an HTML widget.",
"type": "string"
},
"value": {
"description": "The refinement value. In the case of an attribute refinement, this is the bucket,\n the attribute value, or a value range. In the case of a content folder refinement,\n this is the folder id.",
"type": "string"
},
"values": {
"description": "The array of hierarchical refinement values. This array can be empty.",
"items": {
"$ref": "#/definitions/content_search_refinement_value"
},
"type": "array"
}
}
},
"content_search_result": {
"description": "Document representing a content search result.",
"properties": {
"count": {
"description": "The number of returned documents.",
"format": "int32",
"type": "integer"
},
"data": {
"items": {
"type": "object"
},
"type": "array"
},
"hits": {
"description": "The sorted array of search hits. Can be empty.",
"items": {
"$ref": "#/definitions/content"
},
"type": "array"
},
"next": {
"description": "The URL of the next result page.",
"type": "string"
},
"previous": {
"description": "The URL of the previous result page.",
"type": "string"
},
"query": {
"description": "The query String that was searched for.",
"type": "string"
},
"refinements": {
"description": "The sorted array of search refinements. Can be empty.",
"items": {
"$ref": "#/definitions/content_search_refinement"
},
"type": "array"
},
"selected_refinements": {
"additionalProperties": {
"type": "string"
},
"description": "Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL.",
"type": "object"
},
"start": {
"description": "The zero-based index of the first search hit to include in the result.",
"format": "int32",
"minimum": 0,
"type": "integer"
},
"total": {
"description": "The total number of documents.",
"format": "int32",
"type": "integer"
}
}