• 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
ERRest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest


  • Subject: ERRest
  • From: Luiz Alfredo Carrara Bertusso <email@hidden>
  • Date: Thu, 14 Apr 2016 15:10:56 -0300

Hi, I`ve been developing using WebObjects for 2 months and now i˜m working at a Rest API using ERRest framework.
I have a doubt about the possibility of not returning null values when a certain atribute of a class is null. For example, if an atribute is not filled, i`d like hiding it instead of returning null.
I`ve taken a look at the properties "nilKey" and "writeNilKey" of ERXRestFormatDelegate, but I`m not sure whether how to use them or how they can help me in my task.
This is how the API is leading with null values:
[
  {
    "id": 123,
    "typeClass": "Party",
    "fullName": "John Doe",
    "nick": null
  }
]
And here is how the return should be:
[
  {
    "id": 123,
    "typeClass": "Party",
    "fullName": "John Doe",
  }
]
Thank you, I`ll be waiting for your help.
 _______________________________________________
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: ERRest
      • From: Troy Lumasag <email@hidden>
  • Prev by Date: Re: Position available, Melbourne, Australia
  • Next by Date: Re: ERRest
  • Previous by thread: Re: Position available, Melbourne, Australia
  • Next by thread: Re: ERRest
  • Index(es):
    • Date
    • Thread