> I'm thinking I want to use the same URL pattern. To allow for possible
> query string params in the GET case (it's a search, after all), does
> this make sense?
>
> '/v1.0/(?P<username>[A-Za-z0-9_]+)/content/(\\?.+)?$'
>
> Or is it more advisable to just break it into two patterns? (They're
> so close otherwise, I thought it might be wise to consolidate ... but
> maybe not.)
I think a decision like this is totally up to you -- whichever seems
more manageable. You could break it into two patterns and still point
to the same class, then use logic in the class to break it down
further. Or you could just use one big pattern and break the logic up
in the class, etc.
Joe