This is continuation of my question on how to design a REST API for a media analysis server. As per Derrel's answer, in my current design I start the analysis of a media file using a POST /facerecognition/analysisrequests?profileId=33
which specifies that profile ID 33 (previously created on the server by another POST) should be used.
I have two short questions:
- How can I extend this approach to have multiple analysis requests on the same file, e.g. perform both face recognition, text detection, and ad detection on the given file? Is using a binary coding (e.g. each bit signifies an analysis) and e.g. doing
POST http:[server URL]/00000011/analysisrequests?profileId=33
a good idea? - Is using a server side DB (e.g. mySQL) the best way to keep track of all the profile and process IDs?
Thanks,
C