Skip to content

Commit 1a99f4e

Browse files
CHA-915: add the POST products-uuid/search doc (#945)
Co-authored-by: hogren <[email protected]>
1 parent 1ba7dcb commit 1a99f4e

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed

Diff for: content/swagger/akeneo-web-api.json

+1-1
Large diffs are not rendered by default.

Diff for: content/swagger/paths.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/api/rest/v1/products-uuid:
22
$ref: ./resources/products_uuid/routes/products_uuid.yaml
3+
/api/rest/v1/products-uuid/search:
4+
$ref: ./resources/products_uuid/routes/products_uuid_search.yaml
35
/api/rest/v1/products-uuid/{uuid}:
46
$ref: ./resources/products_uuid/routes/products_uuid_uuid.yaml
57
/api/rest/v1/products-uuid/{uuid}/proposal:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
post:
2+
summary: Search list of products
3+
operationId: "search_products_uuid"
4+
tags:
5+
- Product [uuid]
6+
x-versions:
7+
- "SaaS"
8+
description: |
9+
This endpoint allows you to search for products that match the filters provided in the request body. Products are paginated and can be filtered by scope, locales, attributes, and other criteria. User-group-based permissions are applied to the products you request.
10+
<br /><br />
11+
<b>Important limitations</b><br />
12+
- The maximum number of attributes in the request body is 800.<br />
13+
- The maximum number of search criteria is 20.<br />
14+
- The maximum number of items in an array (e.g., values for filters like <code>IN</code> or <code>NOT IN</code>) is 800.
15+
16+
parameters:
17+
- $ref: '#/parameters/pagination_type'
18+
- $ref: '#/parameters/page'
19+
- $ref: '#/parameters/search_after'
20+
- $ref: '#/parameters/limit'
21+
- $ref: '#/parameters/with_count'
22+
- name: body
23+
in: body
24+
required: true
25+
schema:
26+
type: object
27+
properties:
28+
search:
29+
type: string
30+
description: Filter products, for more details see the <a href="/documentation/filter.html">Filters</a> section
31+
scope:
32+
type: string
33+
description: Filter product values to return scopable attributes for the given channel as well as the non-localizable/non-scopable attributes. For more details, see the <a href="/documentation/filter.html#via-channel">Filter product values via channel</a> section
34+
locales:
35+
type: string
36+
description: Filter product values to return localizable attributes for the given locales as well as the non-localizable/non-scopable attributes. For more details, see the <a href="/documentation/filter.html#via-locale">Filter product values via locale</a> section
37+
attributes:
38+
type: string
39+
description: Filter product values to only return those concerning the given attributes. For more details, see the <a href="/documentation/filter.html#filter-product-values">Filter on product values</a> section
40+
with_attribute_options:
41+
type: boolean
42+
description: Return labels of attribute options in the response. See <a href='/concepts/products.html#the-linked_data-format'>the `linked_data` format</a> section for more details. (Only available since the 5.0 version)
43+
with_asset_share_links:
44+
type: boolean
45+
description: Return asset collection share link urls in the response. See <a href='/concepts/products.html#the-linked_data-format'>the `linked_data` format</a> section for more details. (Only available in the SaaS version)
46+
with_quality_scores__products:
47+
type: boolean
48+
description: Return product quality scores in the response. (Only available since the 5.0 version)
49+
with_completenesses:
50+
type: boolean
51+
description: Return product completenesses in the response. (Only available since the 6.0 version)
52+
x-examples:
53+
x-example-1:
54+
'{"scope": "ecommerce","locales": ["en_US"],"search": {"completeness":[{"operator": "=","value": 100,"scope": "ecommerce"}]}}'
55+
x-example-2:
56+
'{"attributes": ["sku","colors","a_localized_and_scopable_text_area"],"scope": "tablet"}'
57+
responses:
58+
200:
59+
description: Return products paginated
60+
schema:
61+
title: Products
62+
type: object
63+
allOf:
64+
- $ref: '#/definitions/Pagination'
65+
- properties:
66+
_embedded:
67+
type: object
68+
properties:
69+
items:
70+
type: array
71+
items:
72+
$ref: '#/definitions/ProductUuidList'
73+
x-examples-per-version:
74+
- x-version: 'SaaS'
75+
x-example:
76+
$ref: '#/definitions/ProductUuidExamples/x-SaaS'
77+
401:
78+
$ref: "#/responses/401Error"
79+
403:
80+
$ref: "#/responses/403Error"
81+
406:
82+
$ref: "#/responses/406Error"
83+
422:
84+
$ref: "#/responses/422Error"

0 commit comments

Comments
 (0)