Apache PHP RestAPI to upload/download [closed]

I know this is probably a duplicate post, but I have a Windows machine with Apache/PHP/MySQL services.
I have to build/develop a rest API function that allows the upload/download of files from the server (not the apache root) with a callback. Where should I start?