-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Product Reviews API] - minor changes
- Loading branch information
1 parent
b94a5dc
commit 01cca12
Showing
12 changed files
with
193 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 83 additions & 83 deletions
166
tests/Responses/Expected/product_review/accept_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,92 @@ | ||
{ | ||
"id": @integer@, | ||
"title": "mug_review_best", | ||
"rating": 4, | ||
"comment": "mug_review_best_comment", | ||
"author": { | ||
"id": @integer@, | ||
"email": "example.queen@example.com", | ||
"emailCanonical": "example.queen@example.com", | ||
"firstName": "Example", | ||
"lastName": "Queen", | ||
"gender": "u", | ||
"_links": { | ||
"self": { | ||
"href": @string@ | ||
} | ||
} | ||
}, | ||
"status": "accepted", | ||
"reviewSubject": { | ||
"id": @integer@, | ||
"code": "MUG_REVIEW_BEST", | ||
"attributes": [], | ||
"options": [], | ||
"associations": [], | ||
"translations": { | ||
"en": { | ||
"locale": "en" | ||
} | ||
}, | ||
"productTaxons": [], | ||
"channels": [], | ||
"reviews": { | ||
"1": { | ||
"title": "mug_review_best", | ||
"rating": 4, | ||
"comment": "mug_review_best_comment", | ||
"author": { | ||
"id": @integer@, | ||
"title": "mug_review_good", | ||
"rating": 3, | ||
"comment": "mug_review_good_comment", | ||
"author": { | ||
"id": @integer@, | ||
"email": "example.queen@example.com", | ||
"emailCanonical": "example.queen@example.com", | ||
"firstName": "Example", | ||
"lastName": "Queen", | ||
"gender": "u", | ||
"_links": { | ||
"email": "example.queen@example.com", | ||
"emailCanonical": "example.queen@example.com", | ||
"firstName": "Example", | ||
"lastName": "Queen", | ||
"gender": "u", | ||
"_links": { | ||
"self": { | ||
"href": @string@ | ||
"href": @string@ | ||
} | ||
} | ||
}, | ||
"status": "rejected", | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
}, | ||
"2": { | ||
} | ||
}, | ||
"status": "accepted", | ||
"reviewSubject": { | ||
"id": @integer@, | ||
"title": "mug_review_bad", | ||
"rating": 1, | ||
"comment": "mug_review_bad_comment", | ||
"author": { | ||
"id": @integer@, | ||
"email": "example.queen@example.com", | ||
"emailCanonical": "example.queen@example.com", | ||
"firstName": "Example", | ||
"lastName": "Queen", | ||
"gender": "u", | ||
"_links": { | ||
"self": { | ||
"href": @string@ | ||
"code": "MUG_REVIEW_BEST", | ||
"attributes": [], | ||
"options": [], | ||
"associations": [], | ||
"translations": { | ||
"en": { | ||
"locale": "en" | ||
} | ||
} | ||
}, | ||
"status": "accepted", | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
} | ||
"productTaxons": [], | ||
"channels": [], | ||
"reviews": { | ||
"1": { | ||
"id": @integer@, | ||
"title": "mug_review_good", | ||
"rating": 3, | ||
"comment": "mug_review_good_comment", | ||
"author": { | ||
"id": @integer@, | ||
"email": "example.queen@example.com", | ||
"emailCanonical": "example.queen@example.com", | ||
"firstName": "Example", | ||
"lastName": "Queen", | ||
"gender": "u", | ||
"_links": { | ||
"self": { | ||
"href": @string@ | ||
} | ||
} | ||
}, | ||
"status": "rejected", | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
}, | ||
"2": { | ||
"id": @integer@, | ||
"title": "mug_review_bad", | ||
"rating": 1, | ||
"comment": "mug_review_bad_comment", | ||
"author": { | ||
"id": @integer@, | ||
"email": "example.queen@example.com", | ||
"emailCanonical": "example.queen@example.com", | ||
"firstName": "Example", | ||
"lastName": "Queen", | ||
"gender": "u", | ||
"_links": { | ||
"self": { | ||
"href": @string@ | ||
} | ||
} | ||
}, | ||
"status": "accepted", | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
} | ||
}, | ||
"averageRating": 2.5, | ||
"images": [], | ||
"_links": { | ||
"self": { | ||
"href": "/api/v1/products/MUG_REVIEW_BEST" | ||
}, | ||
"variants": { | ||
"href": "/api/v1/products/MUG_REVIEW_BEST/variants/" | ||
} | ||
} | ||
}, | ||
"averageRating": 2.5, | ||
"images": [], | ||
"_links": { | ||
"self": { | ||
"href": "/api/v1/products/MUG_REVIEW_BEST" | ||
}, | ||
"variants": { | ||
"href": "/api/v1/products/MUG_REVIEW_BEST/variants/" | ||
} | ||
} | ||
}, | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
} | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/Responses/Expected/product_review/change_status_fail_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"code":400, | ||
"message":"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,4 +109,4 @@ | |
}, | ||
"createdAt": @string@, | ||
"updatedAt": @string@ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
"_embedded": { | ||
"items": [] | ||
} | ||
} | ||
} |
Oops, something went wrong.