Hi Jody,

Fair enough, but there is only one thing missing in your proposal: what if you just want the metadata of a resource? What if you want to know when it was last modified or whether it is a directory / exists or not? It seems quite essential to me.

The zip file uploading was just an idea I had that I thought might be useful if people need to upload a whole directory, but I don't know if that is a use case, it can be scrapped.

Regards
Niels

On 01/13/2016 06:44 PM, Jody Garnett wrote:
Got a question ... do we need both a resource and a dir endpoint?

/resource</path/to/resource[\?<format>]

  * GET
    Download a resource (json listing if directory)
    html format produces human readable description, lists directory
    contents.
    info format produces machine readable description, lists directory
    contents.
    return 200
  * POST
    Upload a resource, create directories on the fly (fail if resource
    already existed).
    Upload a zipfile to a directory is unpacked (is that useful?).
    Upload a zipfile to a resource (such as icons.zip) is not unpacked.
    return 201
  * PUT
    Upload a resource, create directories on the fly (overwrite if
    exists, fail if directory).
    Zipfile handling as above.
    return 200 (exists) 201 (new)
  * DELETE
    Delete a resource (delete contents if directory)
    return 200

Exceptions

  * GET or DELETE for a resource that does not exist
    return 404
  * GET, POST, PUT or DELETE on directory
    return 405
  * POST for a resource that exists
    return 405


--
Jody Garnett

On 13 January 2016 at 03:47, Niels Charlier <[email protected] <mailto:[email protected]>> wrote:

    Please offer feedback for the following proposal:

    https://github.com/geoserver/geoserver/wiki/GSIP-137


    Kind Regards
    Niels

    
------------------------------------------------------------------------------
    Site24x7 APM Insight: Get Deep Visibility into Application Performance
    APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
    Monitor end-to-end web transactions and take corrective actions now
    Troubleshoot faster and improve end-user experience. Signup Now!
    http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
    _______________________________________________
    Geoserver-devel mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/geoserver-devel



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to