I would like to quickly set up a RESTful site using PHP without learning a PHP Framework. I would like to use a single .htaccess-file in Apache or a single rule using Nginx, so I easyli can change web server without changing my code.
So I want to direct all requests to a single PHP-file, and that file takes care of the RESTful-handling ...
I'm working on an API that accepts data from remote clients, some of which where the key in an HTTP POST almost functions as an array. In english what this means is say I have a resource on my server called "class". A class in this sense, is the type a student sits in and a teacher educates in. When the user submits an HTTP POST to creat...
I'm working on building the URLs for my REST API before I begin writing any code. Rails REST magic is fantastic, but I'm slightly bothered the formatting of a URL such as:
http://myproject/projects/5
where Project is my resource and 5 is the project_id. I think if a user is looking to retrieve all of their projects, then a respective H...
I'm having a bit of difficulty coming up with the right answer to this, so I will solicit my problem here. I'm working on a RESTFul API. Naturally, I have multiple resources, some of which consist of parent to child relationships, some of which are stand alone resources. Where I'm having a bit of difficulty is figuring out how to make th...
I am designing an ASP.NET (3.5) web application that connects to a Rocket Software UniVerse database. I am in the planning stages right now and need some help in being pointed in the right direction. I am brand new to ASP and C#.
I am shooting for a RESTful design and a MVC pattern. Rocket provides a .NET library called UniObjects.NET w...
I want to provide a simple XHTML representation of each of the resources in a REST web service.
At the moment i'm using a StringBuilder to generate these which is both tedious and error prone. I don't see these changing after I publish the service but the process of coding each is a bit painful.
Is there a XHTML document writer api? Sh...
I am now making some RESTful web services with MySQL database. I used NetBeans to create the resources of RESTful service with MySQL, and now I can now use GET and POST/PUT to list and add/modify data entities in the MySQL server.
Currently, I wish to make some calculations right after a client makes the POST activities, then the poste...
Hi ,
iam newbie to clojure, just curious as to can i use jersey REST api as REST webframework for clojure? all along i see people talking about compojure? if you can provide me any resource
or reasoning that would be great
Thank you
...
Lets say we have a Company model, that has many Employees And has many Projects
If we want to show the projects, we'll go to
"/company/1/projects/index"
If we want to edit 1 project, we'll go to
"/company/1/projects/1/edit"
What if we want to edit all the projects at once on the same webpage?
We can go to "/company/1/edit" and put a n...
Hi,
implementing publishActivity in PHP using the REST API using this code:
$activity = array(
'message' => '{*actor*} did something.',
'action_link' => array(
'text' => 'Play Travians',
'href' => WEBROOT
)
);
$activity = $facebook->api_client->dashboard_publishActivity($activity);
I get a 15-digit number ...
I'm trying to make a calculator web service that has more than 10 parameters. Is there any function in the Java Restlet or in Java itself that allows you to see the parameter ids?
e.g. http://mywebsite.com/calculator?id1=value1&id2=value2&id3=value3 => I'm trying to access the values of id1, id2, and id3 so that I don't have to ...
Hi gang,
I've been working through various samples to try and piece together a solution for SAML token-based authentication for ASP.Net web services and WCF RESTful web services... some of the samples I've been referencing:
http://custombasicauth.codeplex.com/Wikipage
http://www.leastprivilege.com/SecuringWCFDataServicesUsingWIF.aspx...
For several of my cuke scenarios, I want to POST the user to a page with an object in the params, so that Rails will make a new object in the database. Is there a convenient way to send a POST+params to an action (either using something in cucumber or rails) or do I have to write my own function using Net::Http?
...
For my iPhone app, I'm consuming a RESTful service and getting JSON. I've found libraries to deserialize this into an NSDictionary. However, I'm wondering if there are any libraries to deserialize the JSON/NSDictionary/Property List into my object (an arbitrary one on my side).
The java equivalent would be the object-relational mappers ...
In my application I use Jersey REST to serialize complex objects. This works quite fine. But there are a few method which simply return an int or boolean.
Jersey can't handle primitive types (to my knowledge), probably because they're no annotated and Jersey has no default annotation for them. I worked around that by creating complex ty...
I'm playing with the project appengine-rest-server to create the REST webservices for all the existing models. I got a strange error, the first time I query the browser: http://localhost:8080/rest/metadata/user, it gives me the result:
<xs:schema>
−
<xs:element name="user">
−
<xs:complexType>
−
...
Hi,
I wanted to know, if say I had a MVC Application with some functionality and I want to provide this as a service to some of my clients. Do they need to go through coding and querying the XHTML data?(as it is represented in XHTML). I mean how do they generate proxy classes and use my methods? One of the ways is creating URI object bu...
I'm reading these two pages
resources
Adding more RESTful actions
The Rails Guides page shows
map.resources :photos, :new => { :upload => :post }
And its corresponding URL
/photos/upload
This looks wonderful.
My routes.rb shows this
map.resources :users, :new => { :signup => :get, :register => :post }
When I do: [~/my_app...
Hi,
I am newbie to rest. I am using the following code example to understand the RESTlet.
http://www.restlet.org/documentation/1.1/firstResource
I am using RESTClient addon to firefox for testing.
When i do GET on http://localhost/rest, i get a response "ok".
But when i do GET on http://localhost/items, I get an error "404 Not found...
I am a student in the process a building an Android app that can post a GPS track into a Rails application. I would like to do things the "Rails" way and take advantage of the REST. My rails application basically has 3 models at this point: users, tracks, and points. A user has_many tracks and a track has_many points. A track also ha...