Create Endpoint which collects all data from /api/index.ts
(which can be external api, database etc.) and return it as single bundle {data1: [...], data2: [...], data3: [...]}
Write a function that accepts three arguments: data
(an array of some objects), uniqueKey
(representing the key of an object whose value the developer needs to make unique), and unificatorKey
(representing the key of an object whose value will be added to the value of uniqueKey
to ensure uniqueness). The function should modify the data and return the modified version with unique values. If name is already unique it should not be edited.
- Before beginning, estimate the time required for each task in
README_DEV.md
. After completing each task, updateREADME_DEV.md
with the actual time spent on that task. - To start the project in development mode, run the command
npm run dev
in the terminal. - If you make any modifications to the project, add new scripts, or introduce changes, make sure to mention them in the
README_DEV.md
. - After you have finished, please share the link to your GitHub repository.
- Correct implementation of API endpoints with proper request handling and response formatting.
- Proper usage of TypeScript and adherence to coding best practices.
- Complexity of your code and execution/response time.
- Best library choice for creating endpoints is Express.js
- You are encouraged to modularize your code and use best practices for maintainability and scalability.
- The focus should be on clean code, efficiency, and adherence to the provided requirements.