tags:

views:

99

answers:

2

At first, I thought that RESTful is when I write code, someone can use my function like a web service. After I read lots of thing. When I am looking back now, I see lots of resources. So, Is restful means sending data or sending my code? I am confused.

+3  A: 

REST architecture means that every resource is accessible with a unique URI.

codedevour
And code can be a resource too.
Josef
How can code be resource? I have a function. I just want that clients can see parameters and name of function. And he'll use my function. How this will be happen
Iguramu
Hm think of it like you're requesting an css file, javascript etc. this is also possible. if it's wise, is another question.
codedevour
-1 REST architecture means a *LOT* more than just that.
Wahnfrieden
now I think that rest is just resource(s). There is nothing about function. Server sends resources and clients create its own function. What is difference between rest and RPC is rest doesn't change the protocol. It uses HTTP but RPC tunnels HTTP. am I right wahn?
Iguramu
@Wahnfrieden: Who says it doesn't means more than just that? In base this fits his question i think.
codedevour
@chrsk I think it's a misleading and inaccurate answer.
Wahnfrieden
@iguramu: REST allows for code-on-demand, where the server sends code to be executed by the client.
Wahnfrieden
But rest is nothing about operation. Am i right?
Iguramu
@Iguramu sorry, I don't understand. Your questions are often too vague for me to help you very well.
Wahnfrieden
+2  A: 

How I Explained REST to My Wife

Vijay Dev
Definitely explained to a geeky wife
Chris S
i read there but I have still question. and also it doesn't help me that when i want somebody to use my code, not to copy and write my code again how can he do that? I dont want to share my code, i just will give my parameters and name of function.
Iguramu