Advertisement
Guest User

Untitled

a guest
Apr 1st, 2023
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.75 KB | None | 0 0
  1. '/categories/{categoryId}/products':
  2.     parameters:
  3.       - schema:
  4.           type: string
  5.         name: categoryId
  6.         in: path
  7.         required: true
  8.     get:
  9.       summary: Retrieve all products in a category
  10.       responses:
  11.         '200':
  12.           description: OK
  13.           content:
  14.             application/json:
  15.               schema:
  16.                 type: array
  17.                 items:
  18.                   $ref: '#/components/schemas/Product-Category'
  19.           headers: {}
  20.       operationId: get-categories-categoryId-products
  21.       description: |-
  22.         Retrieves all active products associated with the provided category ID and price list ID. This can be the ID of the leaf category, sub-category, or root category.<p>For a leaf category, the API returns all products associated with it. If the ID of the root or sub-category (not a leaf category ID) is provided, the API returns all the products associated with all child categories. By default, the API returns the following fields with results sorted alphabetically by Product Name.
  23.            <ul>
  24.            <li>Product Name</li>
  25.            <li>Product Code</li>
  26.            <li>Product Description</li>
  27.             <li>Product Family</li>
  28.             <li>List Price</li>
  29.             <li>Charge Type</li>
  30.             <li>The image associated with the product.</li>
  31.          </ul>
  32.       parameters:
  33.         - $ref: '#/components/parameters/page'
  34.         - $ref: '#/components/parameters/limit'
  35.         - $ref: '#/components/parameters/sort'
  36.         - $ref: '#/components/parameters/filter'
  37.         - $ref: '#/components/parameters/PriceListId'
  38.         - $ref: '#/components/parameters/CartId'
  39.       tags:
  40.        - Categories
  41.       security:
  42.         - oauth:
  43.            - openid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement