Order add comment functionality in REST API #2315
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (*)
This is the first out of many coming PRs where I will be adding some missing endpoints to the REST Api, this one will add the functionality for adding and retrieving order comments as an authenticated Admin user, as well as the ACL permissions.
I chose to target the
20.0
branch with these new features, but It's subject to change if there's demand. For people interested that can't usev20
yet, I made an extension where I'll be porting the same changes for use withv19
(we'll be using it in production in the next few weeks).Manual testing scenarios (*)
After applying this patch, you should be able to perform the following actions as Admin user:
GET /api/rest/orders/comments/<comment_id>
Questions or comments
Testing is encouraged for people using OAuth as I didn't test with it.
Contribution checklist (*)