Skip to content

docs(api): link POST/DELETE shared/directories and document DELETE path encoding - #534

Merged
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:docs/shared-dirs-api-followup
Jul 20, 2026
Merged

docs(api): link POST/DELETE shared/directories and document DELETE path encoding#534
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:docs/shared-dirs-api-followup

Conversation

@got3nks

@got3nks got3nks commented Jul 20, 2026

Copy link
Copy Markdown

Follow-up to #531, tightening the reference docs for the shared-directories endpoints — no code change.

Two fixes:

  • Index was incomplete. The endpoint summary listed only GET and PUT /shared/directories. The POST and DELETE sections were fully written in the body but had no link from the index, so they were only findable by scrolling. Added the two missing entries.

  • DELETE encoding was underspecified. DELETE takes the path as a query parameter, and the docs didn't state two things a client needs: the value must be the exact string GET returned (the daemon matches it byte-for-byte), and it must be percent-encoded. Added that note plus a Windows example (C:\Users\bob\My Sharespath=C%3A%5CUsers%5Cbob%5CMy%20Shares) next to the existing POSIX one, so the backslash / drive-letter-colon / space encoding is shown rather than left to the reader to work out.

The byte-for-byte match is the existing behaviour (Api.cpp, it->path == wanted), not a change — the docs just now describe it.

While here I audited the whole reference: every documented endpoint is now linked from the index, and all in-page anchors resolve. The server ip:port aliases stay folded into their {ecid} index lines (annotated "ECID or ip:port"), matching the existing convention.

…ent DELETE path encoding

The endpoint index listed only GET and PUT /shared/directories; the POST
and DELETE sections existed in the body but were unreachable from the
summary. Add the two missing links.

Also document what the DELETE query parameter requires: the exact path
GET returned, percent-encoded, matched byte-for-byte. Add a Windows
example alongside the POSIX one so the backslash / drive-letter / space
encoding is shown rather than left to the reader.
@got3nks
got3nks merged commit f58a4fa into amule-org:master Jul 20, 2026
5 checks passed
@got3nks
got3nks deleted the docs/shared-dirs-api-followup branch July 20, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant