From 52feaaecbd9f418dcfd317fb8a59ed596ddd4cb4 Mon Sep 17 00:00:00 2001 From: Douglas Saldanha Date: Wed, 27 Dec 2017 14:36:59 +0000 Subject: [PATCH] Customers adjust reponse --- swagger.yaml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/swagger.yaml b/swagger.yaml index af24a8d..3a6f4d0 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -648,7 +648,7 @@ paths: type: integer format: int64 responses: - 200: + 200: description: Product Attribute has been deleted 404: description: Resource not found @@ -695,7 +695,7 @@ paths: ### Includes You can give the following values on includes parameter: `orders, groups` - operationId: getCustomers + operationId: getCustomer produces: - application/json parameters: @@ -706,11 +706,17 @@ paths: 200: description: Customer response schema: - type: array - items: - $ref: '#/definitions/Customer' + type: object + properties: + data: + type: array + items: + $ref: '#/definitions/Customer' + meta: + $ref: '#/definitions/MetaPartialResponse' 204: $ref: '#/responses/204' + /customers/{id}/: get: tags: @@ -735,9 +741,12 @@ paths: 200: description: Customer response schema: - type: array - items: - $ref: '#/definitions/Customer' + type: object + properties: + data: + type: array + items: + $ref: '#/definitions/Customer' 404: description: Resource not found schema: