Mock Data | vue | vue element admin api
Mockdataisanintegralpartofthefront-enddevelopment,thekeylinktoseparatethefrontandback-enddevelopment.Bypre-agreedwiththeserver-sideinterface,analogrequestdataandevenlogic,canmakethefront-enddevelopmentindependent,willnotbeblockedbythedevelopmentoftheserver.SwaggerInmycompanyproject,thedataisusuallysimulatedbythebackendusingswagger[1].swaggerisaRESTAPIsdocumentgenerationtoolthatautomaticallygeneratesdocumentationfromcodecomments.Itcanbecross-platform,opensource,supportsmostlanguages,community...
Mock data is an integral part of the front-end development, the key link to separate the front and back-end development. By pre-agreed with the server-side interface, analog request data and even logic, can make the front-end development independent, will not be blocked by the development of the server.
SwaggerIn my company project, the data is usually simulated by the backend using swagger[1].
swagger is a REST APIs document generation tool that automatically generates documentation from code comments. It can be cross-platform, open source, supports most languages, community is good, in short, very good, highly recommended.
Online Demo[2]
Easy-mockvue-admin-template[3] previously used easy-mock[4] to simulate data. It is a pure front-end visualization and can quickly generate persistence services for analog data. Very easy to use and can also be combined with swagger, support for cross-domain, whether it is a team or a personal project is worth a tr...