Skip to content

Commit

Permalink
eclipse-ditto#60: Fixed parameter namen and description of error 403.
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
  • Loading branch information
Juergen Fickel committed Jan 29, 2018
1 parent c27f9d9 commit 8456d12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
12 changes: 5 additions & 7 deletions documentation/src/main/resources/openapi/ditto-api-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ paths:
parameters:
- $ref: '#/parameters/thingIdPathParam'
- $ref: '#/parameters/featureIdPathPathParam'
- name: definitionArray
- name: definition
in: body
description: >-
JSON array of the complete Definition to be updated. Consider that
Expand Down Expand Up @@ -1094,9 +1094,8 @@ paths:
$ref: '#/definitions/AdvancedError'
'403':
description: |-
The request could not be completed. Either
* as the caller had insufficient permissions.
For modifying the Definition of an existing Feature `WRITE` permission is required.
The request could not be completed as the caller had insufficient permissions.
For modifying the Definition of an existing Feature `WRITE` permission is required.
schema:
$ref: '#/definitions/AdvancedError'
'404':
Expand Down Expand Up @@ -1132,9 +1131,8 @@ paths:
$ref: '#/definitions/AdvancedError'
'403':
description: |-
The request could not be completed. Either
* as the caller had insufficient permissions.
For deleting the Definition of an existing Feature `WRITE` permission is required.
The request could not be completed as the caller had insufficient permissions.
For deleting the Definition of an existing Feature `WRITE` permission is required.
schema:
$ref: '#/definitions/AdvancedError'
'404':
Expand Down
13 changes: 6 additions & 7 deletions documentation/src/main/resources/openapi/ditto-api-2.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Copyright (c) 2017 Bosch Software Innovations GmbH.
#
# All rights reserved. This program and the accompanying materials
Expand Down Expand Up @@ -931,7 +932,7 @@ paths:
parameters:
- $ref: '#/parameters/thingIdPathParam'
- $ref: '#/parameters/featureIdPathPathParam'
- name: definitionArray
- name: definition
in: body
description: >-
JSON array of the complete Definition to be updated. Consider that
Expand Down Expand Up @@ -967,9 +968,8 @@ paths:
$ref: '#/definitions/AdvancedError'
'403':
description: |-
The request could not be completed. Either
* as the caller had insufficient permissions.
For modifying the Definition of an existing Feature `WRITE` permission is required.
The request could not be completed as the caller had insufficient permissions.
For modifying the Definition of an existing Feature `WRITE` permission is required.
schema:
$ref: '#/definitions/AdvancedError'
'404':
Expand Down Expand Up @@ -1005,9 +1005,8 @@ paths:
$ref: '#/definitions/AdvancedError'
'403':
description: |-
The request could not be completed. Either
* as the caller had insufficient permissions.
For deleting the Definition of an existing Feature `WRITE` permission is required.
The request could not be completed as the caller had insufficient permissions.
For deleting the Definition of an existing Feature `WRITE` permission is required.
schema:
$ref: '#/definitions/AdvancedError'
'404':
Expand Down

0 comments on commit 8456d12

Please sign in to comment.