Skip to content

Commit 2d8644a

Browse files
authored
Merge pull request #1119 from akeneo/CEX-732-apidoc
CEX-732 - Add comments and review status on pending attributes in tasks list
2 parents ae81eb8 + 3ad5691 commit 2d8644a

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

content/swagger/akeneo-web-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/swagger/resources/workflows/definitions/workflow_task.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ properties:
4141
description: |
4242
Object of attributes for the task that are awaiting completion or require user input.
4343
The keys of this object are attribute codes (e.g. "name", "description", "size"), and
44-
each value is an array of objects with locale and scope information.
44+
each value is an array of objects with information on locale, scope, rejection status and comment.
4545
This field is only included when `with_attributes=true`.
4646
additionalProperties:
4747
type: array
@@ -57,15 +57,21 @@ properties:
5757
type: string
5858
x-nullable: true
5959
description: The scope (channel) code for the attribute value, null if the attribute is not scopable
60+
rejected:
61+
type: boolean
62+
description: Whether this attribute value has been rejected
63+
comment:
64+
type: string
65+
description: Comment explaining why the attribute value was rejected
6066
example:
61-
"name": [{"locale": null, "scope": null}]
67+
"name": [{"locale": null, "scope": null, "rejected": false}]
6268
"description": [
63-
{"locale": "en_US", "scope": "ecommerce"},
64-
{"locale": "fr_FR", "scope": "ecommerce"}
69+
{"locale": "en_US", "scope": "ecommerce", "rejected": false},
70+
{"locale": "fr_FR", "scope": "ecommerce", "rejected": true, "comment": "Typo in the description"}
6571
]
6672
"color": [
67-
{"locale": "en_US", "scope": null},
68-
{"locale": "fr_FR", "scope": null}
73+
{"locale": "en_US", "scope": null, "rejected": true},
74+
{"locale": "fr_FR", "scope": null, "rejected": false}
6975
]
7076
_links:
7177
type: object

content/swagger/resources/workflows/routes/workflows_tasks.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ get:
4848
due_date: "2024-03-31T18:00:00Z"
4949
rejected: true
5050
pending_attributes:
51-
"name": [{"locale": null, "scope": null}]
51+
"name": [{"locale": null, "scope": null, "rejected": false}]
5252
"description": [
53-
{"locale": "en_US", "scope": "ecommerce"},
54-
{"locale": "fr_FR", "scope": "ecommerce"}
53+
{"locale": "en_US", "scope": "ecommerce", "rejected": false},
54+
{"locale": "fr_FR", "scope": "ecommerce", "rejected": true, "comment": "Typo in the description" }
5555
]
5656
_links:
5757
self:
@@ -66,11 +66,11 @@ get:
6666
due_date: "2024-03-28T18:00:00Z"
6767
rejected: false
6868
pending_attributes:
69-
"name": [{"locale": null, "scope": null}]
70-
"size": [{"locale": null, "scope": null}]
69+
"name": [{"locale": null, "scope": null, "rejected": false}]
70+
"size": [{"locale": null, "scope": null, "rejected": true}]
7171
"color": [
72-
{"locale": "en_US", "scope": null},
73-
{"locale": "fr_FR", "scope": null}
72+
{"locale": "en_US", "scope": null, "rejected": false},
73+
{"locale": "fr_FR", "scope": null, "rejected": false}
7474
]
7575
_links:
7676
self:

0 commit comments

Comments
 (0)