• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to build ERRest response for NSDictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to build ERRest response for NSDictionary?
      • From: Ralf Schuchardt <email@hidden>
  • Prev by Date: globalIDForObject without a lock
  • Next by Date: Re: How to build ERRest response for NSDictionary?
  • Previous by thread: globalIDForObject without a lock
  • Next by thread: Re: How to build ERRest response for NSDictionary?
  • Index(es):
    • Date
    • Thread