Re: [Geoserver-devel] GeoServer Resources - API and UI

2008-03-28 Thread Tim Schaub
Hey- Andrea Aime wrote: > >> My vision is that you create a new workspace (say a database >> connection) doing something like the following - excuse the shorthand: >> >> Request: >> POST /geoserver/workspaces/ >> >> >> Response: >> >> >> Then you want to see what layers (term layers used flexi

Re: [Geoserver-devel] GeoServer Resources

2008-03-28 Thread Tim Schaub
Hey- David Winslow wrote: > It seems like this is confusing the user interface and the api a bit, right? > Wouldn't we want translat(ed|able) verbs for the UI but HTTP method names for > the actual body? > Yeah, I agree. Either way. There's a whole lot to be decided on in terms of body str

Re: [Geoserver-devel] GeoServer Resources - Security

2008-03-28 Thread Tim Schaub
Hey- David Winslow wrote: > 4. Have a perfect one-to-one mapping between namespaces and the rest api, > such > that the rest api can just be another way of editing services.properties. ... > I am currently a fan of option 4; have each 'map' in the rest API be > a 'namespace' for the services

Re: [Geoserver-devel] GeoServer Resources - Security

2008-03-27 Thread David Winslow
So Andrea pointed out to me that this restful security interface would be showing up fairly soon after a security configuration option that's currently 'in the works'. The current conception of how it will work is to have a list of rules of the form: ..= where each field can be a * to indicate

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread David Winslow
It seems like this is confusing the user interface and the api a bit, right? Wouldn't we want translat(ed|able) verbs for the UI but HTTP method names for the actual body? It also seems to me that, for most resources, you're either adding/deleting stuff from it OR modifying it, not usually bot

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Tim Schaub
Hey- Chris Holmes wrote: > Since we're going for more intuitive for users, I'm not convinced that > http verbs for permissions are intuitive for users. Read and Write are > a lot more intuitive to a naive me then PUT, POST, GET, and DELETE. If > we wanted that granular I'd suggest Write, Crea

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Chris Holmes
Since we're going for more intuitive for users, I'm not convinced that http verbs for permissions are intuitive for users. Read and Write are a lot more intuitive to a naive me then PUT, POST, GET, and DELETE. If we wanted that granular I'd suggest Write, Create, Read and Delete (Remove?). I

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Tim Schaub
Hey- Should be a new thread, but what the heck... Andrea Aime wrote: > There is no plan to have per feature or per property access control > (think restricted areas, or data columns that only certain users can > see) at the moment. > > REST wise, this could be represented as: > /worskspaces//la

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Chris Holmes
Hey all, thanks for the discussion, I'm liking the direction a lot. I think the map concept is potentially very powerful. We do need to figure out how namespaces fit in, but I think I too am inclined to have them not so central to the rest api. To have them more as a parameter on a featureTy

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Tim Schaub
Hey- Andrea Aime wrote: > > Namespaces are today the only organisational structure we have in > GeoServer, each datastore and coveragestore is placed under a certain > namespace, and will be soon used to drive per layer security restrictions. > Unfortunately namespace by itself is not strong eno

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Gabriel Roldán
doh, trying to catch up on the thread... On Thursday 27 March 2008 05:34:07 pm Andrea Aime wrote: > Justin Deoliveira ha scritto: > >> It certainly makes code easier than trying to fake what's not there. > >> That said we have already quite a bit of indirection levels, adding one > >> more won't k

Re: [Geoserver-devel] GeoServer Resources - API and UI

2008-03-27 Thread Andrea Aime
Tim Schaub ha scritto: > Thanks for the thoughts Andrea. > > I'll respond in even smaller bits > > Andrea Aime wrote: >> Btw, I noticed now that the proposal page does not have the concept >> of a datastore, that is, one of a connection to a database, remote wfs >> server, or a file (and the same

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Tim Schaub
Hey- Andrea Aime wrote: > > Since we're a WFS server namespaces can't really be removed or > completely hidden, you have to be able to reference the same layer the > same way across services (using wms and wfs at the same time is not > uncommon). > > OGC tests ask for multiple namespaces no?

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Justin Deoliveira
> > Well, since geotools datastore do not attach namespaces to feature types > but to the datatsore as whole, I thought you might have wanted to wrap > the FeatureSource to change the namespace of each single layer on the > fly. That would be an extra indirection, an extra wrapping. > How did you

Re: [Geoserver-devel] GeoServer Resources - API and UI

2008-03-27 Thread Tim Schaub
Thanks for the thoughts Andrea. I'll respond in even smaller bits Andrea Aime wrote: > Btw, I noticed now that the proposal page does not have the concept > of a datastore, that is, one of a connection to a database, remote wfs > server, or a file (and the same goes for coverages). > > If you're

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
Justin Deoliveira ha scritto: >> >> It certainly makes code easier than trying to fake what's not there. >> That said we have already quite a bit of indirection levels, adding one >> more won't kill us. >> It just seems unecessary to me. We could just change the wording >> and call namespace worksp

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Justin Deoliveira
> > It certainly makes code easier than trying to fake what's not there. > That said we have already quite a bit of indirection levels, adding one > more won't kill us. > It just seems unecessary to me. We could just change the wording > and call namespace workspaces,folders,bags,whatever and keep

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
David Winslow ha scritto: > On Thursday 27 March 2008 11:46:11 Andrea Aime wrote: >> David Winslow ha scritto: >> ... >> >>> Just to clarify, my current conception of the security configuration for >>> the new REST API is to have permissions for the /maps hierarchy apply to >>> the map data, and pe

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
Justin Deoliveira ha scritto: > >> Technically namespace is an attribute of the datastore, not of the >> layer, and there's not much we can do about it, unless we do change >> the datastores in gt2. >> So if workspace == datastore, then the structure has to be >> >> {namespace}/{workspace}/... >>

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread David Winslow
On Thursday 27 March 2008 11:46:11 Andrea Aime wrote: > David Winslow ha scritto: > ... > > > Just to clarify, my current conception of the security configuration for > > the new REST API is to have permissions for the /maps hierarchy apply to > > the map data, and permissions for the /workspaces h

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
David Winslow ha scritto: > On Thursday 27 March 2008 05:14:13 Andrea Aime wrote: >> Tim Schaub ha scritto: >> ... >> >> 2) I think it makes sense to have one set of resources related to >>> configuring data (workspaces) and one set related to publishing layers >>> (maps). The name "workspaces" ca

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Justin Deoliveira
> Technically namespace is an attribute of the datastore, not of the > layer, and there's not much we can do about it, unless we do change > the datastores in gt2. > So if workspace == datastore, then the structure has to be > > {namespace}/{workspace}/... > > because of how gt2 is done. That

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
David Winslow ha scritto: ... > Just to clarify, my current conception of the security configuration for the > new REST API is to have permissions for the /maps hierarchy apply to the map > data, and permissions for the /workspaces hierarchy would apply to > configuration (maybe you have a set o

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
Justin Deoliveira ha scritto: > My thoughts on this one are that we should treat namespace as an > attribute on layer, and not as a grouping of layers. Technically namespace is an attribute of the datastore, not of the layer, and there's not much we can do about it, unless we do change the datas

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread David Winslow
On Thursday 27 March 2008 05:23:52 Andrea Aime wrote: > Tim Schaub ha scritto: > ... > > > 4) I also don't know squat about auth/auth in GeoServer, but it seems to > > me like it would be pretty handy to expose a "groups" resource (and/or > > "roles") next to the users resource. Then every other r

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread David Winslow
On Thursday 27 March 2008 05:14:13 Andrea Aime wrote: > Tim Schaub ha scritto: > ... > > > 2) I think it makes sense to have one set of resources related to > > configuring data (workspaces) and one set related to publishing layers > > (maps). The name "workspaces" captures the meaning of a resour

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Justin Deoliveira
My thoughts on this one are that we should treat namespace as an attribute on layer, and not as a grouping of layers. I also dont think namespace makes it into the "workspace" hierachy either. I would like to see it be something seperate: GET geoserver/namespaces/ (get a list of namespaces) GET

Re: [Geoserver-devel] GeoServer Resources - API and UI

2008-03-27 Thread David Winslow
On Thursday 27 March 2008 04:55:27 Andrea Aime wrote: > Wow, lots of stuff. I'll try to answer each item in its own > mail since I have the impression this will generate quite a thread ;) > > Tim Schaub ha scritto: > > Hey- > > > > I'd be interested to hear thoughts on an architecture proposal for

Re: [Geoserver-devel] GeoServer Resources - API and UI

2008-03-27 Thread Justin Deoliveira
> > I like the idea of a single consistent REST api that goes from > configuration to actual data. > A user interface based on the same structure (that is, one that > is completely based in rest style, that is, simply return back HTML > as the default resource encoding) may be appealing, thought

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
Tim Schaub ha scritto: > 5) We're currently doing some work on style configuration. I like the > idea of having a collection of styles at /geoserver/styles and then > assigning named styles to layers through the > /geoserver/maps//layers//styles resource. The styles could > have a short name

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
Tim Schaub ha scritto: ... > 4) I also don't know squat about auth/auth in GeoServer, but it seems to > me like it would be pretty handy to expose a "groups" resource (and/or > "roles") next to the users resource. Then every other resource (with > the exception of individual features perhaps) c

Re: [Geoserver-devel] GeoServer Resources

2008-03-27 Thread Andrea Aime
Tim Schaub ha scritto: ... > 2) I think it makes sense to have one set of resources related to > configuring data (workspaces) and one set related to publishing layers > (maps). The name "workspaces" captures the meaning of a resource for > the configuration of layer collections a bit better fo

Re: [Geoserver-devel] GeoServer Resources - API and UI

2008-03-27 Thread Andrea Aime
Wow, lots of stuff. I'll try to answer each item in its own mail since I have the impression this will generate quite a thread ;) Tim Schaub ha scritto: > Hey- > > I'd be interested to hear thoughts on an architecture proposal for > GeoServer: > http://geoserver.org/display/GEOSDOC/GeoServer+Res

[Geoserver-devel] GeoServer Resources

2008-03-26 Thread Tim Schaub
Hey- I'd be interested to hear thoughts on an architecture proposal for GeoServer: http://geoserver.org/display/GEOSDOC/GeoServer+Resources This builds off of work that David Winslow has been doing and has written up here: http://geoserver.org/display/GEOSDOC/RESTful+User+Management+API http://