[Registry-dev] ISSUE - Query string and versions
Glen Daniels
glen at wso2.com
Fri Apr 18 05:58:19 PDT 2008
Hi team:
So as I'm redoing the APP stuff, I'm trying to fix the places that ended
up kind of unclean in the URL design. I've run into one that will
actually impact the rest of the Registry URLs as well, so I wanted to
run it past you all. Here's the short version:
The current design for version URLs uses the query string:
http://registry/r1?v2
I'd like us to be using the query string for (omg!) query parameters,
and this design makes it challenging to consistently parse the URL for
both query execution and versioning - also it makes versioning queries
impossible (because there's a fight for who uses the query string). I'd
like to change versioning to match our standard metadata syntax:
http://registry/r1;version=2
Everything will still work the same way if you use the standard APIs, so:
String [] paths = registry.getVersions(url);
for (String path : paths) {
Resource version = registry.get(path);
}
works as expected, just the actual path changes.
If you have a problem with this, please holler. See next message re:
query strings to find out how I ran into this.
Thanks,
--Glen
More information about the Registry-dev
mailing list