Re: Deleting instance with REST & JavaMonitor
Re: Deleting instance with REST & JavaMonitor
- Subject: Re: Deleting instance with REST & JavaMonitor
- From: Klaus Berkling <email@hidden>
- Date: Thu, 26 May 2011 12:17:00 -0700
On May 26, 2011, at 12:06 PM, Pascal Robert wrote: I'm toying with the REST stuff in JavaMonitor and ran into a problem deleting an instance.
This is the URL I send:
GET http://[host]:[port]/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/[AppName]/deleteInstance?pw=[password]&id=[id]
Hum, look like something is wrong. The method have:
MApplication application = (MApplication) routeObjectForKey("name"); deleteInstance(application, (Integer) routeObjectForKey("id"));
But "id" is not registered in the route:
restHandler.insertRoute(new ERXRoute("MApplication","/mApplications/{name:MApplication}/deleteInstance", ERXRoute.Method.Get, MApplicationController.class, "deleteInstance"));
The ID should be fetched by request().numericFormValueForKey() instead of routeObjectForKey().
I see. I'll try to fix this in my JavaMonitor.
Thanks.
kib
"The trouble with normal is it always gets worse." Bruce Cockburn
Klaus Berkling Web Application Dev. & Systems Analyst DynEd International, Inc.
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden