WP-API – How get post resource by name instead ID?

I’m developing a system integration java webapp – wordpress CMS. I adopted the WP-API plugin.

In my case i have some codes in JSPs like.. for example using JSTL:

Read More
<c:import url="[[host-wordpress]]/wp-api/post/44888">

However, if a wordpress user recreate the post consequently broken my integration.
Also would be intuitive for java frontend programmer find a code like :

<c:import url="[[host-wordpress]]/wp-api/post/news-about-something">

I saw in wp-api documentation that is possible by WP-QUERY, however i would like to implement a less invasive method.

Anybody knows how to do that ?

Related posts

Leave a Reply

1 comment