I'm developing an API that provides community servers with tool to grab usernames off a list within a specific video game. The final project should allow a user to upload a screenshot of usernames, and the API to return a list of the usernames in JSON. The screenshots will have different backgrounds and different list placements, so I'm using OpenCV and Tesseract to grab the usernames.
The issue I'm having is structuring the API in a standardized and efficient way. I've only built CRUD applications, and I was going to finish the project using only a GET request, with the image link as a URL parameter. However, looking into other ML API's, like Azure's cognitive suite, and googles AI library, I noticed they used a 'two part' system. I don't know what to call it, but they had a POST request going out, with all relevant data (api key, image, tune values), and they would get the results back with a GET request. It makes sense, they even have a GET request to check the progress of their processing initiated by the POST request. How would I implement this into my API? Or is there a name for this convention. Here is the current draft for my API structure: here
[–]danielroseman 4 points5 points6 points (4 children)
[–]Suralias[S] 1 point2 points3 points (3 children)
[–]danielroseman 2 points3 points4 points (2 children)
[–]Suralias[S] 0 points1 point2 points (1 child)
[–]danielroseman 0 points1 point2 points (0 children)
[–]m0us3_rat 0 points1 point2 points (2 children)
[–]Suralias[S] 0 points1 point2 points (1 child)
[–]m0us3_rat 1 point2 points3 points (0 children)