Programming representational state transfer (REST)

by Ananya Srivastava.

Share
|
Homepage | Submit your article | Contact | TOS
More articles on software  

You are here: Categories » Computers and technology » Software

REST (representational state transfer) is a process for getting information content from a Web site by reading a designated Web page that contains an XML (Extensible Markup Language) file that describes and includes the feasible content. For example, REST could be used by an online publisher to make syndicated content available. Periodically, the publisher would prepare and activate a Web page that included content and XML statements that described the content. Subscribers would need only to know the URL (Uniform Resource Locator) for the page where the XML file was located, read it with a Web browser, interpret the content data using the XML information, and reformat and use it appropriately (perhaps in some form of online publication).

Now question is that why doesn't the REST programming section include any code? It is largely because REST is more about a mindset rather than code, more about design than implementation.

It may look simple, but there are few vital points to keep in mind while developing applications in the REST style.

Think about the business problem in respect of resource manipulation rather than Application programming interface design. Enabling web services requires making data available for use by applications without knowing ahead of time exactly how that data will be used. Start by modeling

the persistent resources that is to be exposed.

There must have a single, unambiguous, authoritative identity within a system in order to identify all the conceptual entities that the system exposes as resources and to assign a unique URL to each of them. In case of temporary resource you should be very careful if you plan to use them only as a temporary resource.

Publicly exposed resources should be sorted out that are immutable by the client and those are mutable. Putting and deleting should be used in appropriate manner. Proper methods should be implemented that will allow both sender and receiver to make the absolute minimum of assumptions as to the other's state.

Single logical operation should not be implemented when there are multiple requests.

Applications that need to be expects, accepts and returns should be properly documented.

A good specification of the representational schema of both mutable and immutable resources with a formal mechanism should be there (for example, XML Schema, DTD, Schematron, or RelaxNG).

There should be a proper description and documentation of the resources that can be accessed by using a "gradual unfolding methodology" to expose data for clients. Proper linking to other related resources in every representation to enable clients to drill down for more information should be there.

You should know how to use the software to setup a server that can do content negotiation, authentication, authorization, compression, caching, vacuuming and house cleaning. A proper abstractions should be there so the implementation can be carried out in a good way. If there is abstractions then it can survive the storm of change from different implementations and new technologies.

Representational State Transfer REST Architecture

Leave a comment or ask a question
Total comments: 0

Software Disclaimer

  • The e-articles directory is not responsible for any and all copyright infringements by writers and authors. If you suspect the information contained by this page for any copyright infringements, please contact us to investigate the issue
Remote Access Services (RAS) under Windows XP Professional - Authentication protocols • EAP - Extensible Authentication Protocol. A set of APIs in Windows for developing new security protocols as needed to accommodate new technol (more...)
Detecting SoftICE by Calling INT 3h - This is one of the most well known anti-debugging tricks, and it uses a back door in SoftICE itself. It works in all versions of Windows, and it is based on calling INT 3h with registers containing (more...)
Detecting SoftICE by Calling INT 68h - Here's a way to detect the presence of SoftICE in memory by calling INT contain the value 43h before calling INT be in the AX register. 68h. The AH register must 68h. If SoftICE is active in memor (more...)
How Can You Increase Your computer performance - Basic computer knowledge or/ and appropriate technical assistance can help you increase computer performance. Computers have become an expected supporter in this modern world. O (more...)
Detecting SoftICE by Searching Memory - This detection searches the memory in the V86 mode for the WINICE.BR string. Because this method is infrequently used, it's worth considering, though it can only be used in Windows 9x. Thi (more...)
Fight for the Future, Digital Future: Google VS Apple - We can be proud as we watch one of the greatest virtual wars unleashing at the digital market. If 15 years ago it was Apple Vs Windows confrontation, today it has slightly changed its main parties (more...)
The Beginner's Guide to iPad Video Conversion on Mac - So, you've just taken in a shiny new iPad and impressed by its beautiful display. There are several possible sources of content that you will want to convert for viewi (more...)
Touch and View: iPad application - iPad application development has become an extremely popular topic at numerous conferences and workshops since the product introduction keynote. Mobile software companies went boldly into the une (more...)
Deciding on TIFF vs. JPEG Output for Scanned Images - It can be difficult to understand which file type is best for saving your scanned images. Here's a brief breakdown of the two most common options. Preserving beloved memories is on (more...)
Photoshop Clipping Path and Masking Techniques :: Wonderful Technique to Knock Out Image Background - Graphic design is being the promotional key in every spare of business and individual life. Business organizations seek graphic tools to have publicity by dint of bill board, catalogs, magazines, w (more...)

 
free content
    Copyright © 2006 - 2012 e-articles.info.
The texts, articles and tutorials in the directory are property of their respective owners and authors.