Skip to content

Updating the subject does not update the transformed post #182

@psrpinto

Description

@psrpinto

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": "<h1>Foo</h1>",
    "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
###

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions