ttebify/anonymous-comrades

[FEATURE]: Implement Public Chats Endpoints

Opened this issue · 0 comments

Task Description:

The goal of this issue is to create and implement the necessary endpoints for managing public chats. Public chats allow users to engage in conversations visible to all users of the application. The following endpoints need to be implemented:

Public Chat Endpoints:

  • GET /api/public-chats: Retrieve all public chats
  • POST /api/public-chats: Create a new public chat
  • DELETE /api/public-chats/{uuid}: Delete a public chat

Acceptance Criteria:

  • The GET endpoint should retrieve all public chats stored in the system.
  • The POST endpoint should create a new public chat with the provided data.
  • The DELETE endpoint should delete a public chat based on the specified UUID.
  • All endpoints should have appropriate request handling and error responses.

Implementation Guidelines:

  1. Create the necessary routes and corresponding controller methods for the public chat endpoints.
  2. Implement the logic to retrieve all public chats in the GET endpoint.
  3. Implement the logic to create a new public chat in the POST endpoint.
  4. Implement the logic to delete a public chat in the DELETE endpoint.
  5. Ensure proper request validation and error handling for all endpoints.
  6. Test each endpoint locally to verify their functionality.
  7. Update the API documentation to include details about the newly added public chat endpoints.