471,089 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Is this is the correct REST approach?

Hi guys,

I need some architecture design verification. We have a site on shared
hosting so I can not use ISAPI filters to do any URL redirecting..etc.
We need to allow our end users to access some data so they can display
it on their site. I've been reading a lot of REST which is really easy
to use. However, I have some questions,
1. All the example have a the URL as http://www.mysite.com/rest/people
to return a list of people. Can I have it as http://www.mysite.com/rest/people.aspx?
I can easy create folder 'people' and have the code in default.aspx
then they can access it by http://www.mysite.com/rest/people
2. Is it ok to make it so that our end users do a POST to that URL and
then return back XML
3. Do I still have to pass the USERNAME/PASSWORD in every call?

Am I on the right track here? Is this still considered a REST
Service?

Thank you and I really appreciate your feedback
Maz.
Jun 27 '08 #1
1 906
MazdoNet,

You cannot do anything with that page as it only is giving back a 404 error.

As you use ASPNet then you have only one time to log on as you can save
username and password in a session item.

Cor

"mazdotnet" <ma*******@gmail.comschreef in bericht
news:ba**********************************@s50g2000 hsb.googlegroups.com...
Hi guys,

I need some architecture design verification. We have a site on shared
hosting so I can not use ISAPI filters to do any URL redirecting..etc.
We need to allow our end users to access some data so they can display
it on their site. I've been reading a lot of REST which is really easy
to use. However, I have some questions,
1. All the example have a the URL as http://www.mysite.com/rest/people
to return a list of people. Can I have it as
http://www.mysite.com/rest/people.aspx?
I can easy create folder 'people' and have the code in default.aspx
then they can access it by http://www.mysite.com/rest/people
2. Is it ok to make it so that our end users do a POST to that URL and
then return back XML
3. Do I still have to pass the USERNAME/PASSWORD in every call?

Am I on the right track here? Is this still considered a REST
Service?

Thank you and I really appreciate your feedback
Maz.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mantrid | last post: by
3 posts views Thread by luke.hoersten | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.