Skip to content

[FEAT]: Implement an endpoint to activate or disable a squeeze page #639

@Dev-Tonia

Description

@Dev-Tonia

Description:

Implement a feature to toggle the status of a "squeeze" . The system should allow users to toggle the status between True (active) and False (inactive). The feature should handle toggling logic and return the updated status in the response.

Acceptance Criteria:

  • Implement an endpoint to activate or deactivate a "squeeze" page.
  • Ensure the status is toggled between True and False on each request.
  • Return the updated status in the response.
  • Handle errors gracefully, such as invalid requests or server issues.
  • Ensure the system returns a 200 success status with the updated status.

Requirements:

  • Implement an endpoint to handle the toggling logic.
  • Store the update status of the current "squeeze"
  • Return the updated status in the response.
  • Handle errors such as invalid requests or server issues.

API Endpoint: [patch] /api/v1/squeez/{id}/toggle

Toggle Squeez Status Endpoint

  • Description: Toggles the status of the "squeez" between True and False.
  • Request: No request body required.
  • Response: Returns the updated status of the "squeeze".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions