This pull request modifies the response structure of the specified endpoint to dynamically adjust based on the request from the frontend. The change ensures that the data returned is tailored to the specific needs of the frontend, improving efficiency and user experience.
Related Issue (Link to issue ticket)
Motivation and Context
This change is required to ensure that the backend can provide responses that are more aligned with the requirements of the frontend. It addresses the issue of unnecessary data being sent to the frontend, which can lead to performance inefficiencies and a suboptimal user experience.
How Has This Been Tested?
The change was tested using unit tests and integration tests in a development environment. The tests included sending various requests from the frontend and verifying that the responses were correctly tailored based on the request parameters.
Screenshots (if appropriate - Postman, etc):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
This pull request modifies the response structure of the specified endpoint to dynamically adjust based on the request from the frontend. The change ensures that the data returned is tailored to the specific needs of the frontend, improving efficiency and user experience.
Related Issue (Link to issue ticket)
Motivation and Context
This change is required to ensure that the backend can provide responses that are more aligned with the requirements of the frontend. It addresses the issue of unnecessary data being sent to the frontend, which can lead to performance inefficiencies and a suboptimal user experience.
How Has This Been Tested?
The change was tested using unit tests and integration tests in a development environment. The tests included sending various requests from the frontend and verifying that the responses were correctly tailored based on the request parameters.
Screenshots (if appropriate - Postman, etc):
Types of changes
Checklist: