If I have an online database containing data about people (name, age, country etc), and then I create a page that displays information of it, and save it as: mywebsite.com/api/get_person_information/person_id This page would simply display a serialized array (php) with information of a table's row (which primary key value should be replaced in 'person_id'). Could that be considered an Web API?
Asked
Active
Viewed 186 times
1
-
It could, but the question is why would this matter? – Richard J. Ross III Jan 15 '12 at 19:57
-
1See also this question: http://stackoverflow.com/questions/808421/api-vs-webservice – The Nail Jan 15 '12 at 20:03
1 Answers
3
A web API is anything that lets other people make an application reusing components of your application or your data. That would make exposing your data in a machine-readable way an API.
(You might want to use a more popular format to expose said data instead of PHP's variable dump syntax.)

millimoose
- 39,073
- 9
- 82
- 134