Original Question:
i read that for RESTful websites. it is not good to use $_SESSION. Why is it not good? how then do i properly authenticate users without looking up database all the time to check for the user's roles?
I read that it is not good to use $_SESSION.
http://www.recessframework.org/page/towards-restful-php-5-basic...
Imagine some kind of a banking application, with a screen to create accounts. Each Account has a Currency and a Bank as a property, Currency being a separate class, as well as Bank. The code might look something like this:
public class Account
{
public Currency Currency { get; set; }
public Bank Bank { get; set; }
}
public clas...
I have an application which has a Projects table and a Users table. In my Create New Project form I have a required field for Project Manager. However, the User record for Project Manager may not exist yet. Project Manager is a required field.
Up to now I have been developing the application on a "one screen, one record" basis, but t...
Hi,
I wrote a web service API which services REST requests in php. It didn't take much time to actually setup this on apache. But, I am more comfortable writing python code rather than php code. Can python be used as a server-side scripting language like php? What changes are necessary to make it work with apache?
Thanks
Bala Mudiam
...
In a windows/.net environment I currently use castle monorails with jquery to provide an administrative interface to an e-commerce application.
This application works nicely, but has no real concept of ui composition. Up to now this has not been a problem, because the ui was targeted to a single user base, and a single domain object. Th...
Hi all,
I'm getting this occacional error from my rails app:
ActionController::MethodNotAllowed: Only get, put, and delete requests are allowed.
I think it's caused by a malformed HTTP request (in this case a DELETE request) caused by the client browser... Maybe?
The URL that triggers this action it's like:
https://domain.com/resour...
Hi,
I am planning to write web service in python. But, I found wsgi also does the similar thing. Which one can be preferred?
Thank you
Bala
Update
I am still confused. Please help.
Better in my sense means:
1. Bug will be fixed periodically.
2. Chosen by most developers.
3. Additional features like authentication tokens like AWS...
In wiki article for REST
it is indicated that if you use http://example.com/resources DELETE, that means you are deleting the entire collection.
If you use http://example.com/resources/7HOU57Y DELETE, that means you are deleting that element.
I am doing a WEBSITE, note NOT WEB SERVICE.
I have a list that has 1 checkbox for each item ...
I want to expose my RIA DomainService with a REST head as described in this tutorial by Brad Abrams: http://blogs.msdn.com/brada/archive/2009/07/15/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-5-astoria-add-reference-and-winforms.aspx
It seems the tutorial was targeted at the July 09 RIA Services rel...
Okay, so I'm designing a stand-alone web service (using RestLET as my framework). My application is divided in to 3 layers:
Data Layer (just above the database, provides APIs for connecting to/querying database, and a database object)
Object layer (responsible for serialization from the data layer... provides objects which the client ...
I want to handle application's internal exceptions in a consistent way so that REST web services return errors in a RESTful way.
I'm using Castle's WCF integration and I couldn't find any good sources on how to do handle errors using WcfIntegration.WindsorServiceHostFactory. The only solution that comes to mind is to use Castle's inter...
Hi Guys
I'm Curious if somebody could recommend a book about REST that isn't "Effective REST Services Via .NET: For .NET Framework 3.5 (Microsoft .Net Development)". One of my colleagues read it and he wasn't too impressed with it.
Can anyone suggest a better one?
Thanks
Dave
...
how to create a rest api in c#?
please provide tutorials links or in answer response.
...
I'm working on a REST API. The key objects ("nouns") are "items", and each item has a unique ID. E.g. to get info on the item with ID foo:
GET http://api.example.com/v1/item/foo
New items can be created, but the client doesn't get to pick the ID. Instead, the client sends some info that represents that item. So to create a new item:
P...
I am farily new to the topic, but I am trying to combine both Django and Pyjamas. What would be the smart way to combine the two? I am not asking about communication, but rather about the logical part.
Should I just put all the Pyjamas generated JS in the base of the domain, say http://www.mysite.com/something and setup Django on a sub...
Hi,
im using the Facebook PHP Client library and want to get the Events of a user without first logging in as a user.
Is that possible?
I got the User ID and the events.get method has a parameter UID.
<?php
// Configure
$apiKey = 'xxx';
$secretKey = 'xxx';
// Include Lib
require_once('facebook.php');
// init main object
$face...
How can I make a url like "/united-states/cities/new-york" intead of "/countries/1/cities/1" (I dont't want the word "countries" in the url)
what do I have to write in route.rb to use:
site.com/united-states/cities/ (to see united states' cities list)
site.com/united-states/cities/new-york/ (to see new york details)
and how use these...
I have a custom IErrorHandler which catches certain exceptions thrown from web services and translates them to HTTP status codes. The problem is that, even when the handler sets the status code (404 for example), the Web server (IIS 7.5) always returns 400 (Bad Request). I tried other status codes and the result is the same ("The server ...
If I have a HTTP based RESTful service and I want to POST a search resource and use the PRG pattern for returning the URL to the search-result resource, I have to persist the search-result resource on the server.
Is this a good idea?
If I do persist the search-result resource how long is it persisted for?
Can I control this by a HTTP ...
Given a path to a REST style URL:
http://site.com/rest/customer/foo/robot/bar/1
When you GET it, it returns a PDF to the foo-customer containing page 1 of the bar-URL.
While foo is the name of the customer bar is an URL. The URL usually contains slashes and might look something like this:
http://anothersite.com/interestingarticle.ht...