What about the front end before the back end is given to api?

it is often encountered that the front-end development is faster than the back-end development, so how should the front-end be tested?
yapi seems to be OK?
secondly, how to solve the user login problem if you write api in node?


rap2 , learn about it and simulate the data returned by the API through configuration.


the front and rear ends are separated, and both ends are developed in parallel. The front end and the background agree on the data format, and then mock data is fine. There are many mock class libraries. It is recommended that .
if you use Node to write API , it is recommended to remove the cookie check and directly return the corresponding value.


try easy-mock ?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bddb0c-306f7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bddb0c-306f7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?