Use mariadb (mysql) php to write an api for your own use.

the api I am talking to now is a request from others.
is to use curl to catch the opposite party http. I give it to the opposite party json
, and then the opposite party gives back to me json, and then I show it (using mongodb, nodejs)

).

it"s just that now I want to write a
for my own use, but is there a list template I can refer to with mysql (mariadb)
? What will the concept of
look like?
(what I have here is php, mysql)

Mar.04,2021

  1. list the API you requested from others
  2. request the above API
  3. Save the returned data to mysql

simple template. You can probably take a look at the official website Demo?. Or rookie tutorial this?
or choose a framework and go to MVC (if the requirements are appropriate).

Menu