In the example below, in the response of the last request, the title is [Title]
, when it should be Foo
.
### Create subject
POST http://localhost:8888/wp-json/index.php?rest_route=/try-wp/v1/subjects/blog-post
Content-Type: application/json
{
"sourceUrl": "https://foo"
}
###
### Update the title
POST http://localhost:8888/wp-json/index.php?rest_route=/try-wp/v1/subjects/blog-post/{replace_with_id_from_above_response}
Content-Type: application/json
{
"rawTitle": "",
"parsedTitle": "Foo"
}
###
### Find the transformed post
GET http://localhost:8888/wp-json/index.php?rest_route=/wp/v2/posts/{replace_with_transformed_id_from_above_response}
Content-Type: application/json
###