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 pathpattern
s of "object?special=true"
, "object?special=false"
in rkresponsedescriptor
s 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
Post a Comment