Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dev-Tonia opened this issue Feb 28, 2025 · 1 comment
Open
Assignees
Labels

Comments

@Dev-Tonia
Copy link
Contributor

Dev-Tonia commented Feb 28, 2025

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".
@Dev-Tonia Dev-Tonia self-assigned this Feb 28, 2025
@Dev-Tonia
Copy link
Contributor Author

@bhimbho @omotomiwa26 @ezeanyimhenry

Please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants