So we have a site that we're going to be publishing "soon". Perl scripting with a MySQL DB behind it. We would like to also develop an API that users could incorporate directly into their applications to access the database over the net and retrieve data. My guess is we'd publish a reference implementation in some scripting language (probably Perl or Python), and folks can reimplement in the language of their choice.
Any suggestions on how to go about this? My first thought is to just have the API functions send a regular http request with the function name & parameters as get args to a CGI handler script on the server side that processes the request, and sends back the data. On receiving the data, the API function parses it out and inserts it into a native data structure.
Sound reasonable? Ideas? Suggestions?
Any suggestions on how to go about this? My first thought is to just have the API functions send a regular http request with the function name & parameters as get args to a CGI handler script on the server side that processes the request, and sends back the data. On receiving the data, the API function parses it out and inserts it into a native data structure.
Sound reasonable? Ideas? Suggestions?