From fb669e31f3c8033c6aaf06139acea6fdf8676170 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 18 Feb 2023 15:28:38 +1100 Subject: [PATCH] Fixes for product docs --- openapi/api-docs.yaml | 17 +++++++++++++++-- openapi/paths/products.yaml | 3 +-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index 28be00fbd705..ce3353187743 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -11677,6 +11677,20 @@ paths: schema: type: string example: bob + - name: product_key + in: query + description: Filter by product key + required: false + schema: + type: string + example: bob + - name: sort + in: query + description: Returns the list sorted by column in ascending or descending order. + required: false + schema: + type: string + example: id|desc product_key|desc responses: 200: description: "A list of products" @@ -11987,8 +12001,6 @@ paths: type: string format: string example: D2J234DFA - produces: - - application/json requestBody: required: true content: @@ -12002,6 +12014,7 @@ paths: documents: type: array format: binary + responses: 200: description: "Returns the Product object" headers: diff --git a/openapi/paths/products.yaml b/openapi/paths/products.yaml index fe9e08892b09..a84a0d474b48 100644 --- a/openapi/paths/products.yaml +++ b/openapi/paths/products.yaml @@ -343,8 +343,6 @@ type: string format: string example: D2J234DFA - produces: - - application/json requestBody: required: true content: @@ -358,6 +356,7 @@ documents: type: array format: binary + responses: 200: description: "Returns the Product object" headers: