Skip to content

Conversation

@kadamwhite
Copy link
Collaborator

Comments are not currently supported as a top-level endpoint.

This adds a basic /comments endpoint handler, which can

  • Retrieve a paged collection of comments
  • Retrieve a specific comment by ID
  • Retrieve comments by their parent post or page via the .forPost() query parameter method

Unit tests and integration tests have been added to validate the enumerated behaviors of the endpoint handler work as expected.

Further comment query parameters will follow in subsequent PRs, possibly following #145.

Comments are not currently supported as a top-level endpoint.

This adds a basic `/comments` endpoint handler, which can

- Retrieve a paged collection of comments
- Retrieve a specific comment by ID
- Retrieve comments by their parent post or page via the `.forPost()`
  query parameter method

Unit tests and integration tests have been added to validate the
enumerated behaviors of the endpoint handler work as expected.

Further [comment query parameters](http://v2.wp-api.org/reference/comments/)
will follow in subsequent PRs, possibly following #145.
@kadamwhite kadamwhite merged commit 16feaf9 into master May 17, 2016
@kadamwhite kadamwhite deleted the tests/comments-integration-test branch May 17, 2016 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants