How to build ERRest response for NSDictionary?
How to build ERRest response for NSDictionary?
- Subject: How to build ERRest response for NSDictionary?
- From: Jürgen Simon <email@hidden>
- Date: Fri, 21 Nov 2014 13:12:48 +0100
Hi,
I’m having some trouble implementing a simple function with ERRest. I have a method I wish to return a serialized NSDictionary from, not a serialized EOObject. Is that possible? The method could look something like this:
@GET @Path(“/somepath/{id:Integer}/dailyReport") public WOActionResults dailyReport(@PathParam(“id") Integer id) { NSDictionary<String,Object> report = getDailyReport();
??? }
How would I go about building a response for this? Or do I need to implement another controller not inheriting from ERXRouteController for this?
Kind Regards, Jürgen |
_______________________________________________
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