ios - Any way to specify a path pattern with parameters in RestKit 0.20? -


i trying consume web service path object?special=true&id=100 should map specialobject , path object?special=false&id=100 should map regularobject.

but when try use pathpatterns of "object?special=true" , "object?special=false" in rkresponsedescriptors not working - restkit reports url object?special=true&id=100 not match descriptors.

is possible specify path pattern use in rkresponsedescriptor incorporates specific parameter value?

not really. pattern matching based on path, not parameters. don't think it's possible use parameters during pattern matching.

one option use dynamic mapping looks @ url , interprets query parameters decide mapping.

another option use metadata while mapping gives access url , parameters contains.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -