Continuing on from my last thread. From teh same thread on geo-web-rest Haris, the developer who is building the mapguide rest api, brought up another good issue, related to the last thread.
The issue is that our current representations of objects are missing links making it easy for the client to "drill down". As an example, consider the xml representation of a workspace:
<workspace>
<name>foo</name>
...
</workspace>
There is no links pointing the client at any of the datastores contained in the workspace. This again relies on existing knowledge in the client to have to construct the proper uri to request the datastores for this workspace.
The solution is to use a link. So the above would look like:
<workspace>
<name>foo</name>
...
<dataStores>
<atom:link rel="alternate" href=".../workspaces/foo/datastores"/>
</dataStores>
</workspace>
I am not sure i have nailed the semantics of "alternate" correctly, but that would be the general idea.
Thoughts?
-Justin
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.