ArunPrakashG / wordpress_client

A powerful and easy-to-use WordPress REST API client for Dart & Flutter.
MIT License
33 stars 12 forks source link

fix(ListCommentRequest): fix default comment status #44

Closed sebasrobert closed 10 months ago

sebasrobert commented 10 months ago

The comment status to filter the comments should be 'approve' instead of 'approved' otherwise no results are returned. This has been tested with postman has we were unable to list the comments. You can look at the following reference from the wordpress documentation. The approved CommentStatus has been left in the code as it might be useful for other request type.

See https://developer.wordpress.org/rest-api/reference/comments/#definition

ArunPrakashG commented 10 months ago

Hi @sebasrobert ! Thank you for pointing this out and even going an extra mile and contributing to the library. I have added a comment regarding removal of the deprecated enum value. Could you please review this and let me know?

ArunPrakashG commented 10 months ago

@sebasrobert I have merged this to the master branch. will upload a new version in few minutes. Thanks for the contribution!

ArunPrakashG commented 10 months ago

Additionally, You can use the extra parameter on all requests to override an internal key-value pair or add a new one!