web services - How do I recognize that I am using REST? -
rest looks me simple got question rest. looks urls use. how recognize using rest? difference between simple url like: "http://en.wikipedia.org/wiki/representational_state_transfer" , rest service url. url (hhttp://en.wikipedia.org/wiki/representational_state_transfer) if return json/xml rest, otherwise webpage!
in other words: given url, how recognize accessing rest service url or webpage. return type different. if return type xml/json rest otherwise simple webpage!
there no way tell url accessing rest service vs. else.
given rest architectural style, instead of specific technology, there no specific bit-pattern or given marker should for.
from example, cannot tell if returns json vs. html or such, in case server responding accept: string instead of randomly picking 1 or other based on url (although given specific server can respond specific url how likes, there servers determine in way).
Comments
Post a Comment