How to retrieve posts by category or categories headless wordpress
I am new to wordpress. I have quite a few questions about headless wordpress. I have seen the documentation of wordpress Rest API Handbook. Its pretty clear how to get posts. However,
- How to retrieve posts by category in headless wordpress
- How to create new post using create post Endpoint
Any help will be appreciated.