tag:blogger.com,1999:blog-6432484966567158349.post1127899704173401350..comments2023-10-23T17:45:24.408-07:00Comments on Learn REST: A Tutorial: 3. How Simple is REST?Dr. M. Elksteinhttp://www.blogger.com/profile/01086047572579338522noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-6432484966567158349.post-9076013664196321432017-02-19T18:02:10.402-08:002017-02-19T18:02:10.402-08:00I've been using the REST approach for the last...I've been using the REST approach for the last 7 years. It grew out of disdain for constant ODBC changes, and complexities of using SOAP, server-side scripts, and the like for simple transactions using PCs and Arduino-type devices to collect data and run equipment.<br /><br /> KCLhttps://www.blogger.com/profile/18263285133550947616noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-63921076641684910842014-08-19T00:37:42.985-07:002014-08-19T00:37:42.985-07:00Hello pranavkuthe,
Transport-level security shoul...Hello pranavkuthe,<br /><br />Transport-level security should be enough if all the information is sent in the URL; for HTTPS requests, the URL itself isn't visible (except for the domain name part).<br /><br />If the request contains a payload (a POST request), that too is encoded when HTTPS is used. And of course, the payload itself can be further encrypted if you so wish, independently of Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-46301450643557840002014-08-15T13:39:22.221-07:002014-08-15T13:39:22.221-07:00Hello Sir,
Thanks for the article. I have one ques...Hello Sir,<br />Thanks for the article. I have one question. <br />Please can you correct me if i am wrong.<br />Both the forms, REST and SOAP based web-services are secure, but SOAP based services provides message level security and transport level security when we use HTTPS. Where's as REST can be incorporated with HTTPS for transport layer encryption.<br /><br />On above scenario ,if any Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-69403124667393353582014-07-15T01:29:48.916-07:002014-07-15T01:29:48.916-07:00Hello "tech route",
Not "every HTT...Hello "tech route",<br /><br />Not "every HTTP call is a REST call" -- REST is an architecture design. But if your system uses this kind of design, then yes, REST calls are simply HTTP GET/PUT calls, and all those wrappers and libraries are hardly required (although they can sometimes be useful, depending on your specific requirements).Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-18823297438605100422014-07-10T00:37:42.600-07:002014-07-10T00:37:42.600-07:00Can we say that a simple get/post http call is a r...Can we say that a simple get/post http call is a rest call. Is it mandatory to use any frameworks like restful, soap to build rest based apps. Even restfull is a wrapper over Http. I think if I create a simple get resource using javax.servlet.http.HttpServlet (in java) then its a rest endpoint. Please correct me if I am wrong.Tech-Routehttps://www.blogger.com/profile/17135651575979642197noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-87786994077583677832014-05-25T00:42:54.849-07:002014-05-25T00:42:54.849-07:00Very Simple yet very effective way of explaining ....Very Simple yet very effective way of explaining . Thanks!Anonymoushttps://www.blogger.com/profile/03141820134178818867noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-86064618118444293822014-04-03T05:13:55.601-07:002014-04-03T05:13:55.601-07:00Nice explain in technical terms and by using norma...Nice explain in technical terms and by using normal human activity of letter sending and receiving.<br /><br />ThanksMehul Chauhanhttps://www.blogger.com/profile/08424923729699688626noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-84598658299490238962012-11-19T01:15:18.960-08:002012-11-19T01:15:18.960-08:00Hi JEG,
To use URL rewrites, the URL should be co...Hi JEG,<br /><br />To use URL rewrites, the URL should be consistent; I think my examples were consistent, but I could be wrong. For example, one URL could be "phonebook/FirstName/1231", while the other is "phonebook/UserDetails/FirstName/1231". There is no confusion in this case. Alternatively, you could use "phonebook/UserDetails/FirstName/1231" vs "phonebook/Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-23011618489299794952012-11-14T12:03:17.547-08:002012-11-14T12:03:17.547-08:00I dont quite understand how I would ie. get the fi...I dont quite understand how I would ie. get the first name only<br />phonebook/UserDetails/FirstName/1231<br />and to get all details it would be<br />phonebook/UserDetails/1231<br /><br />If we use rewrite how does the rewrite know what are methods and what are arguments?JEGhttps://www.blogger.com/profile/01638437652258116107noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-63011388712231165192012-10-19T02:40:18.704-07:002012-10-19T02:40:18.704-07:00Thanks for the great post on your blog, it really ...Thanks for the great post on your blog, it really gives me an insight on this topic.<br />Anonymoushttps://www.blogger.com/profile/05269638397258607162noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-22615312713919236892012-07-06T00:19:49.303-07:002012-07-06T00:19:49.303-07:00Thanks for this great article..
It's clear the...Thanks for this great article..<br />It's clear the basic idea of rest very nicely....Sahay Collectionhttps://www.blogger.com/profile/06776684944443606069noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-51992895645860443622011-02-10T10:15:20.017-08:002011-02-10T10:15:20.017-08:00Hello nickai,
The HTTP standard defines PUT as a ...Hello nickai,<br /><br />The HTTP standard defines PUT as a request, by the client, to store a resource as the given URL (see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html" rel="nofollow">RFC 2616</a>). So, in the context of REST, it can be used for updating existing objects, or creating new ones.<br /><br />Of course, the HTTP protocol "makes damn sure [that a server has] Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-72821911432647353692011-01-20T02:57:47.281-08:002011-01-20T02:57:47.281-08:00Thanks for your wonderful article.
Can u provide ...Thanks for your wonderful article.<br /><br />Can u provide some information about PUT operation in REST. Is it actually refers to update or overwrite the value?Unknownhttps://www.blogger.com/profile/10107782445902202047noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-8074415030306285612011-01-14T17:56:06.977-08:002011-01-14T17:56:06.977-08:00ok sure, thanks Dr. Elkstein.ok sure, thanks Dr. Elkstein.adminhttps://www.blogger.com/profile/17786597645631774958noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-82758373714532866812011-01-14T10:55:47.637-08:002011-01-14T10:55:47.637-08:00Dear John,
I'm sorry, but I can't persona...Dear John,<br /><br />I'm sorry, but I can't personally support developers. I recommend that you try posting your questions on a community Q&A service like StackOverflow.Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-2575568899191092352011-01-14T07:19:49.600-08:002011-01-14T07:19:49.600-08:00Hi Dr. Elkstein,
Can I have your email? I have som...Hi Dr. Elkstein,<br />Can I have your email? I have some REST web devlopment questions which I'm currently stuck. I need someone to shed some light on the problems I face. <br /><br />Thanks,<br />John Maximadminhttps://www.blogger.com/profile/17786597645631774958noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-82911280545288941752010-12-11T06:17:28.987-08:002010-12-11T06:17:28.987-08:00Hello nileshw,
That's a very important questi...Hello nileshw,<br /><br />That's a very important question. The envelope/postcard analogy is in fact broken with regard to security, since both SOAP and REST are equally secure (or insecure -- depending on how you use them). I've updated the text in this page to reflect this fact. Thank you!Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-12168178235976479932010-12-01T22:54:49.381-08:002010-12-01T22:54:49.381-08:00Hello Elkstein,
Its really a nice blog to underst...Hello Elkstein,<br /><br />Its really a nice blog to understand REST. Thanks for writing it.<br /><br />For the letter analogy you have given, I have one question. In case you use envelope, your message is hidden. While for postcards, it's open. Does this apply to REST vs. SOAP?<br /><br />Thank you.nileshwhttps://www.blogger.com/profile/11229584709508975122noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-6742107847720740452009-02-18T11:56:00.000-08:002009-02-18T11:56:00.000-08:00Most web development languages are geared towards ...Most web development languages are geared towards the path?query URL format (e.g., http://www.acme.com/phonebook/UserDetails?id=12345). And in most cases, the easiest way to support cleaner, more elegant URLs (like .../UserDetails/12345) is by <B>URL rewriting</B>. The trick is to configure your web server (e.g., Apache httpd) to internally process any request formatted in one way (.../Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-41501808327133763072009-02-18T08:30:00.000-08:002009-02-18T08:30:00.000-08:00Hello DrIn this example, where is method UserDetai...Hello Dr<BR/><BR/>In this example, where is method UserDetails located?<BR/><BR/>http://www.acme.com/phonebook/UserDetails<BR/><BR/>1)http://www.acme.com/phonebook/ is the directory<BR/><BR/>2)UserDetails is the method...but where is this method located? if it exists in (for example) the java file Test.java then how can i construct the URL? is it going to be:<BR/><BR/>http://www.acme.com/Demetris Kyriacouhttps://www.blogger.com/profile/04909270487273299783noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-39637813862019368922008-12-16T12:09:00.000-08:002008-12-16T12:09:00.000-08:00Not at all -- with REST, queries are normally send...Not at all -- with REST, queries are normally send using GET. You <I>can</I> use POST, but you rarely have to (e.g., for requests which contain a large amount of data, such as detailed form submissions.)Dr. M. Elksteinhttps://www.blogger.com/profile/01086047572579338522noreply@blogger.comtag:blogger.com,1999:blog-6432484966567158349.post-87112524547457192872008-12-15T13:56:00.000-08:002008-12-15T13:56:00.000-08:00thanks for a great article.So even a query needs t...thanks for a great article.<BR/><BR/>So even a query needs to be sent to a server via a HTTP POST? Why is that? Why is it not using a GET?<BR/><BR/>GET's are not supposed to have any side effects. Why is that not appropriate to use here?Unknownhttps://www.blogger.com/profile/04417970514458976347noreply@blogger.com