Skip to content

Can't find subject by source URL when calling the API #172

@psrpinto

Description

@psrpinto
### Create blog post
POST http://localhost:8888/wp-json/index.php?rest_route=/try-wp/v1/subjects/blog-post
Content-Type: application/json

{
    "sourceUrl": "https://foo"
}
###

### Find blog post by sourceUrl
GET http://localhost:8888/wp-json/index.php?rest_route=/try-wp/v1/subjects/blog-post?sourceurl=https://foo
Content-Type: application/json
###

The second request returns:

{
    "code": "rest_no_route",
    "message": "No route was found matching the URL and request method.",
    "data": {
        "status": 404
    }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions