I've been trawling SO for a couple of hours tonight looking for some answers, but I've not found anything that really answers what I'm after. My apologies if it has, in fact, been answered already.
I'm designing a new website and I'm trying to decide on the architecture to use to serve the content. In the past, my websites have used PHP...
I'm attempting to test our REST service using restTemplate using the postForObject(...) method.
unit test:
@Test
public void testPostOrder() {
String url = BASE_URL + "/orders/";
OrderDto orderDtoInput = new OrderDto();
orderDtoInput.setCustomerId(34);
UpdateReportDto updateReport = restTemplate.p...
Is it considered bad design if one url accepted different payloads depending on the basic authentication used? for instance:
http://localhost/userA PUT by userA is allowed up pass XML_A but
http://localhost/userA PUT by adminA is allowed up pass XML_B which is XML_A plus more.
in otherwords it is the same resource but what can be upd...
Hi,
I have the model:
User -1---n- Transaction(amount,description, date)
User -1---n- TransactionImport -1---n- TransactonImportField(name,value)
(personal expense tracking app).
What I want to achieve is this:
User opens URL and pastes the CSV with the list of transactions.
User submits it.
System extracts data from CSV into Tra...
Hello,
I just started working with Yaws to try to create some simple RESTful web services, however I ran into an unexpected issue: I can't seem to access my data when I do a PUT request. When I try to use the yaws_api:parse_post function, I get the following error:
ERROR: Can't parse post body for 'PUT' requests: URL: ...
I wrote ou...
In CouchDB, to create a new document you send:
PUT /albums/70b50bfa0a4b3aed1f8aff9e92dc16a0
Isn't PUT used to update data and not creating it?
...
I'm looking for a nice way to generate documentation for a REST API. It doesn't need to actually connect with the code or anything, but it'd be awesome to be able to write the documentation as text files, point the tool at it, and generate some docs from it.
Anyone out there have any ideas? I know I'm being a bit vague, but, to be hone...
If I submit a new user form with errors, it redirects to the index page and then renders the new page on top of it. In the controller I specify that it should just render the new action so that the user can see/fix their errors and resubmit. Is there something obvious that I am missing?
Here's the create action in my controller code:
d...
Hi all,
I have started using django-piston for creating APIS but I am having trouble finding documentation on how to consume the API from inside django with python. I have seen examples using javascript.
So far I am using urllib to access the API but I wonder if this is the best approach.
I appreciate your input on this!
...
I have a REST web service that currently exposes this URL:
http://server/data/media
where users can POST the following JSON:
{
"Name": "Test",
"Latitude": 12.59817,
"Longitude": 52.12873
}
in order to create a new Media metadata.
Now I need the ability to upload a file at the same time as the media metadata. What's the ...
I'm runnng Rails 2.3.8.
I set up map.resources :users in my routes.rb file.
When I run rake routes it shows:
users GET /users(.:format) {:action=>"index", :controller=>"users"}
GET /users(.:format) {:action=>"index", :controller=>"users"}
new_user GET /users/new(.:format) {:action=>"in...
Hi,
I've deployed a project in the staging server and experienced issues regarding the Zend_Rest. I created a simple test service that should return "hello world" on the calling script. The call would take approx. 4secs to finish. It is really slow given the simple task. Any suggestions for optimization?
here's some code snippets :
//...
I am working in asp.net mvc & want to create a restful web service.
Can you please let me know how can i create a restful web service in MVC & how can i use it ?
My requirement is :
i have an application server which send some parameters to web service & the web service should connect to remote server & return image on path (whose path w...
I have one normal servlet and one jersey specific REST related servlet i.e.ServletContainer configured in web.xml.
Case 1 -
Url pattern for normal servlet is "/login"
Url pattern for other REST servlet is "/"
In this case all request will got REST servlet. Request for login also goes to tht Servlet only.
Case 2 -
If Url pattern for RES...
How to call REST API when html form is submitted?
- basically i want to use @FormParam, ne example of tht will also do..!
...
I have developed an rest enable wcf service by using the following link
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/simplerestservice11172009221218PM/simplerestservice.aspx
Now I want to know is there any difference between rest enabled wcf service (or restful web service) & rest web service ? If there is any difference then...
I implemented a REST service and i'm using a web page as client.
My page has some javascript functions that performs several times the same http get request to REST server and process the replies.
My problem is that the browser caches the first reply and not actualy sends the following requests..
Is there some way to force the browser...
Hi i am starting a research how architetural style i will use, to build a medium CRM SaaS, many books authors recommends use SOA, but SOA can be complex, and REST is simple style. so what yours recommend?
Have any cases sucess with these 2 architertural styles with SaaS?
...
We have restful api over HTTP. Amongst other clients we have also mobile-device clients (e.g. iphone). The issue is that there are several iphone apps in different versions out there (1.0, 2.0). Because they are distributed we don't have control which app-version is calling us.
To identify the app-version on server-side I see following...
Hello,
I'm trying to force brackets on lists that contain only one element.
I want something like this:
{"id":"0","industries":[{"id":"0","name":"Technologies"}],"name":"Google Inc."}
But I get:
{"id":"0","industries":{"id":"0","name":"Technologies"},"name":"Google Inc."}
Here is my Entity:
@Entity
@XmlRootElement
public class Compan...