• 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 and Plural Name for Entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest and Plural Name for Entity


  • Subject: ERRest and Plural Name for Entity
  • From: Farrukh Ijaz <email@hidden>
  • Date: Sun, 4 Jul 2010 10:54:12 +0300

Hi,

I'm using ERRest Framework. I want to understand how the Plural names are being picked up by the Framework.

I've few entities as MediaDocument, MediaImage and MediaSection. I have added them to the handler using addDefaultRoutes(?.ENTITY_NAME) method. I don't know why the response is different in creating the parent tag.

Following are the routes:

/ra/MediaDocument -> MediaDocument
/ra/MediaImage -> MediaImage
/ra/MediaSection -> MediaSection

For MediaDocument it uses <Documents type="MediaDocument">, for MediaImage it uses <Images type="MediaImage"> and for MediaSection it uses <Media Sections type="MediaSection">.

For MediaSection, it is considered as Malformed XML as the tag name contains space i.e. <Media Sections type="MediaSection">

Am I'm missing some configuration?

Farrukh
 _______________________________________________
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 and Plural Name for Entity
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: EOF and 2 x Database Connections
  • Next by Date: Re: EOF and 2 x Database Connections
  • Previous by thread: Re: Safari Extension
  • Next by thread: Re: ERRest and Plural Name for Entity
  • Index(es):
    • Date
    • Thread