Regarding REST API -
i'm new rest apis
, trying understand basics of them. lets begin saying have created simple cms web application using php
(you create user, post entry , assign categories maybe, etc...).
that being said, if wanted create mobile app
same, i'll have create php
functions in order send data json
or xml
, in order process post
or put
request.
is rest api
collection of functions i'd use handle mobile app post
, put
, get
request using json
or xml
data format? if not, can example, not definition, please.
to answer question,yes, rest api collection of functions client wish expose creating user, posting entry etc. accepted data format decide api. may json, xml or both.
some examples:
http://coenraets.org/blog/2011/12/restful-services-with-jquery-php-and-the-slim-framework/ http://peter.neish.net/building-a-mobile-app-backend-using-mongodb-and-slim-a-php-rest-framework/
Comments
Post a Comment