Skip to content

[BUG] Inconsistent usage of POST vs. PUT #1470

Open
@dblock

Description

@dblock

What is the bug?

Plugin uses PUT to start replication, but POST to pause, resume and stop. Seems inconsistent.

POST /_plugins/_replication/{index}/_pause
POST /_plugins/_replication/{index}/_resume
PUT /_plugins/_replication/{index}/_start
POST /_plugins/_replication/{index}/_stop

What is the expected behavior?

All these APIs should be either PUT or POST. Feels like POST.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions