* master: /col/delete requires an explicit collection name
A /col/delete request without a collection parameter, or with an empty
one, read as the empty-named default collection and deleted it. Return
400 instead, and accept collection=_default (the keyword weed shell
uses) to delete the default collection deliberately.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: keep a collection literally named _default addressable by /col/delete
collection=_default now names the empty-named collection. A collection
created with that literal name would have been unreachable, and a request
meant for it would have deleted the default collection instead. Resolve
the keyword to the literal collection when one exists, and refuse the
request when both exist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: /col/delete accepts only the DELETE method
A GET is expected to be safe, yet a bare GET or a link prefetch deleted
the named collection. Any other method now gets 405 with an Allow
header, and the docs, benchmark help and test helpers send DELETE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: /col/delete accepts _default_ for the default collection
When a collection literally named _default exists next to the default
collection, collection=_default is refused, which left the default
collection with no way to be named. Accept the _default_ spelling that
weed shell collection.delete already takes; it always means the
default collection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: /col/delete keeps a literal _default_ collection addressable
_default_ now resolves like _default: to the literal collection when one
exists, to the default collection otherwise, and refuses the request when
both exist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* REST_API: /col/delete when both keyword names are literal collections
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>