Requirements Analysis:
>> display user profile after entering page (personality signature, nickname, gender)
>> Click Save to make a request to the server for data save update after user modification
Interface design for back-end interface
- Url:/user/base_info
- Request Method: POST
- Incoming parameters: JSON format
- Parameters
Name of parameter |
type |
whether you must |
parameter Description |
Nick_name |
String |
Is |
Nickname |
Signature |
String |
Is |
Signature |
Gender |
String |
Is |
Sex, MAN /WOMEN |
Name of parameter |
type |
whether you must |
parameter Description |
Errno |
Int |
Is |
Error code |
Errno |
String |
Is |
Error message |
Process Analysis:
1. Get the user's login information
2. Get the data sent by the front end Nick_name,signature,gender
3. Update save data
4. Return result errno=ret. Status code, errmsg= ' response text '
News website Personal Center (User Information page display) process analysis