← 返回 coinbase 的题目列表Manage User Information with API Integration
类型:online_judge
Description
Implement an application to manage user information. Given a local JSON file of user information, you need to perform the following steps:
Read user information from the JSON file and render each user's information on a card. A snippet of the card's code is provided, and you need to replace the hardcoded parts with the respective properties.
Allow adding new user information.
Change the original JSON file to a GET API and replace one field's information by fetching from another API. First, use getCustomers to get user information, then use getManager to get their manager's information. Render all these details to the card from the first step.
Add an edit button to the card, enabling modification of each user's information. The manager selection should be a dropdown, and you need to get the options from the API used in the third step. Implement the basic information modification functionality.
You need to handle potential delays in API calls and ensure the UI remains responsive.
Example
Input
{"id": 3, "name": "Charlie", "managerId": 103}