Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
44 stars 200 forks source link

Add Middleware for Migrating Task Creation Requests to /request API Endpoint #2053

Closed sahsisunny closed 19 hours ago

sahsisunny commented 1 week ago

Pull Request Description

Date: 27 June 2024

Developer Name: @sahsisunny


Issue Ticket Number

Closes [#2042 ]

Description

This PR introduces a middleware to facilitate the task creation requests to the unified /request API endpoint. The middleware ensures that all task creation requests are redirected appropriately and handled uniformly through the new endpoint.

Documentation Updated?

Documentation will be updated after the successful migration of all endpoints.

Under Feature Flag

Database Changes

Breaking Changes

Development Tested?

Screenshots

Screenshot 1

Test Coverage

Screenshot 1 ![image](https://github.com/Real-Dev-Squad/website-backend/assets/70854507/5ebbc864-1917-4940-8a63-8b4f721c629f)

Additional Notes

This middleware is the first step in the migration process, and subsequent PRs will address the actual redirection logic and handle the deprecation of the old endpoints.

vinit717 commented 1 week ago

Can you provide API contact and data model for task request

sahsisunny commented 6 days ago

Can you provide API contact and data model for task request

I'll create a new issue ticket for the API contract and data model and assign it to myself. I didn't initially realize that I also needed to create these since I thought they had already been decided. As this is just a migration, I'll address it in the next task for all types of requests.

https://github.com/Real-Dev-Squad/website-data-models/issues/69 https://github.com/Real-Dev-Squad/website-api-contracts/issues/182