Hi,
I have a first patch for the above attached to
http://jira.codehaus.org/browse/GEOS-3872

I think I need a clarification though. I though we were
going to post to a feature type description to:
/rest/workspaces/<ws>/datastores/<store>

but as far as I can see DataStoreResource already handles
post and it does for the creation of a new store... I guess
the stores list delegates to it for the post handling somehow.

So I added the creation code into FeatureTypeResource.
The latter was already managing POST with the assumption
the feature type was already in the store and just needed
to be published, with the patch it will first look to see
if it's there, if not, it will create it and then
configure it.

I see how this can be troublesome though, a typo in the
feature type name post-ed and an attempted configuration
will turn into the creation of a new feature type
(well, sort of, it will fail anyways you did not specify any
  attribute list).

However, if it's considered more desirable to post directly
to the store resources, what other changes are necessary?

Cheers
Andrea

PS: I know the previous mails talked about a bigger
change, but since this is low priority work that is
done only when I have nothing else to do I'd prefer
to start commiting smaller, self contained patches that
add one bit of the overall plan at a time.


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to