Skip to content

DELETE endpoint to delete event(s) #60

Open
@johan-bjareholt

Description

@johan-bjareholt

My suggested API:

  • Remove DELETE <bucketname>/events/<id> endpoint
  • Add POST <bucketname>/events/delete/by_ids
  • Add GET <bucketname>/events/delete/by_period?start=X&end=X

Reasons why the old delete API is bad and should be replaced completely:

  • The new "by_ids" endpoint makes it possible to remove multiple specific events in one go while the old API could only delete one event at a time.
  • The old DELETE endpoint is also broken because both /events/<id> and /events/count are in the same namespace

Things which need to be considered:

  • Vacuuming the database

Resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions