XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Show Me the Code
Subject: Change to Search Options
Date: 2007-09-21 16:21:25
From: JNeumann

The article includes URIs that contain the actual criteria on which a search is based. For instance: [user]/bookmarks/date/[Y]/[M]/. What happens if the search options change? What if you want to add the ability to search within a date range? Do you make a new URI? [user]/bookmarks/date_range/[Y_from]/[M_from]/[D_from]/[Y_to]/[M_to]/[D_to]/.
The URI with just /date then doesn't make much sense. Should it actually be /for_year_and_month? Also, what happens if we change our /date_range to only use years and months? I'm not seeing much flexibility here. Nor are the calls really self-documenting.

Previous Message Previous Message   Next Message No Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938