Flask develops web projects, manipulates the database and writes restapi, in methodview. How do you generally write about the handling of some tasks?

for example, if ansible executes some task, to trigger this task on the front-end page, how to tell the back-end to compare the specification, write an api? of get or post

Mar.23,2021
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-1e3f169-4481f.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-1e3f169-4481f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?