What is REST ful API and how to use it in JavaScript -


i learning angularjs , have gone through few application using heavily json data.

i come know somewhere rest api provides data, want understand rest api , how use or these free?.

thanks in advance.

your question indicates fundamental misunderstanding of rest is. should not characterized means provide data or piece of software may not free. rest not tied, in way, specific programming language. rest service may consumed wide variety of languages, including javascript.

so, rest?

rest - representational state transfer architectural style!

rest not tied specific protocol, http has become quite popular rest.

the popularity of rest using http partly due lightweight nature , natural mapping exists between http methods , crud operations. example, when creating restful api using http, can loosely think of crud (create, retrieve, update, delete) operations being http post, get, put, , delete methods respectively.

more importantly, rest has nice characteristics:

  • everything resource!!
  • resources expose standard interface e.g. post, get, delete, put when used http rest operations (depending on op) carry special characteristics e.g. safe, idempotent, and/or cacheable (see post details)
  • resources linked
  • multiple representations e.g. xml, json, rdf
  • communication stateless

see blog post on rest design principals more details on rest , above stated bullets.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -