PrestaShop/PrestaShop
WS : Products - The response of the GET request has not defined the field `new`
已关闭
#33,429 创建于 2023年7月26日
BugDetected by TEGood first issueHacktoberfestMinorNeeds SpecsVerifiedWS
仓库指标
- 星标
- (7,621 个星标)
- PR 合并指标
- (平均合并 26天 17小时) (30 天内合并 116 个 PR)
描述
Prerequisites
- I understand and accept the project's code of conduct.
- I have already searched in existing issues and found no previous report of this bug.
Describe the bug and add attachments
WS : Products - The response of the GET request has not defined the field new
Expected behavior
WS : Products - The response of the GET request has defined the field new
Steps to reproduce
- Enable WS
- Create a WS Key
- Request a GET query to
http;//domain.tld/api/products/3for example
In the response of the POST query, it's is filled. Not in the response of GET query.
Response of the POST query :+1:
Response of the GET query :-1:
Acceptance Test
Unskip tests
- https://github.com/PrestaShop/PrestaShop/blob/d6bd4586da1d519e3ccb6ce2dd2420b9a755b5b2/tests/UI/campaigns/functional/WS/02_productsCRUD.ts#L440-L441
- https://github.com/PrestaShop/PrestaShop/blob/d6bd4586da1d519e3ccb6ce2dd2420b9a755b5b2/tests/UI/campaigns/functional/WS/02_productsCRUD.ts#L1121-L1122
PrestaShop version(s) where the bug happened
9.0.x
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
@PrestaShopCorp