Django implements DRF data API interface format encapsulation

Usually, when the front-end and back-end are separated and developed, the front-end Vue calls the back-end interface and needs a combination of state information and data.

This is generally the case for data accessed through an unprocessed API interface.

 [
		{
   
    
    "id": 1, "type": "1", "start": "2023-08-24", "end": "2023-08-24"}, 
		

Guess you like

Origin blog.csdn.net/qq_20288327/article/details/132487989