You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
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:
Requirements:
API Endpoint: [patch] /api/v1/squeez/{id}/toggle
Toggle Squeez Status Endpoint
The text was updated successfully, but these errors were encountered: