[Work] --- front and rear ends of the FBI

First, before the front and rear ends FBI

When the page layout and logic development are achieved, the back-end interfaces are not developed, we can start with Mock data, in the case of an existing interface documentation, we can directly interface documentation in accordance to develop, through mock syntax written in the corresponding fields and data. Commonly used methods are mock data json-server mockjs easy-mock. Rap2 etc.

 

Second, what is the front and rear ends of the FBI

Before the development of writing code, all the ajax data is not returned by the backend real data, but our own false data through an interface mock simulation, the end of the current coding is completed, after the back-end interface has also been written, we need the mock data to kill, try to use the data provided by the back-end, before and after a commissioning end of this process we'll call it the interface FBI front and rear ends.

 

Third, why should the FBI

mock data we've written in the local standard is certainly in line with the front, but the back-end interfaces need to be tested through the first barrier, but also need to test the data format right, as well as the back end there is no enough data to fill, such as writing a list of pages, the front wanted paging

Guess you like

Origin www.cnblogs.com/nanianqiming/p/11616438.html