14. Questions and Answers

In this section, I'll be adding common questions about REST, or real issues I've encountered while developing RESTful services.

If you have a question, feel free to post it as a comment on this page, or on any other relevant page in this tutorial.

Questions posted so far:

  1. How do I perform atomic operations using REST?
  2. How do I delete items using a REST API?
  3. How do I handle authentication in REST?
  4. How do I send complex objects as parameters?

12 comments:

Unknown said...

I'd be interested in server side examples for Ruby, Python, Php, ... not just client side examples.

Dr. M. Elkstein said...

Hello yamhill,

Server-side, this is just your basic web-server program. Too long to discuss on this tutorial, and extremely well covered just about anywhere on the web. The only difference is that the output isn't user-facing HTML, it's machine-facing XML (or text, or whatever).

Unknown said...

Erm, considering the deletion of my previous comment, I guess that was a No.
Well, it would be more appreciated if you posted that no as a reply. But anyway, thank you for your time.

Akram Yakubov said...

I see that u did not talk about service discovery, I tried to do some research about service discovery and service registry. Because, UDDI is not suitable for this. Could you please give some suggestion, I am currently doing my thesis, it could very useful.

Dr. M. Elkstein said...

Sorry Akram, I'm not familiar with REST service discovery facilities (never needed one).

re said...

I read about WCF REST services. How do they differ from REST services?

AlexLev said...

Thanks for the article. I have a question though. if i have a cgi script that is being accessed by http://severname/myfiles and returns files uploaded by the user... if i need to retrieve some more information (like UserId from UserName) should it be done via REST URI or SQL query will work as well?

HM said...

hello mr. elkstein,
is it possible to communicate privately with you through mail ? i have some private questions about rest webservices

sharma said...

for php use Slim or tonic framework..

sharma said...

For PHP and REST help mail me

phpsharma (at)gmail

Unknown said...

Dear Elkstein,

I am a novice in the REST usage. I have a basic question regarding the selection of language. To my background, I know C and Java (core only). Now, I want to choose a language between Java and Python. I need your suggestion in regard should I learn Python while using REST or should I stick to Java only. My long term concern is to work with REST in easy and efficient manner.

Dr. M. Elkstein said...

Hello Haroon,

Either Java or Python (or any of several other languages) will do nicely. Don't mix learning a new technology with learning a new language... Both are good things to do on a regular basis, though.