diff --git a/doc/REST_backend.md b/doc/REST_backend.md index 78a3fd4eb..6423d95b0 100644 --- a/doc/REST_backend.md +++ b/doc/REST_backend.md @@ -6,6 +6,19 @@ following values are valid for `{type}`: `data`, `keys`, `locks`, `snapshots`, `index`, `config`. `{path}` is a path to the repository, so that multiple different repositories can be accessed. The default path is `/`. +## POST {path}?create=true + +This request is used to initially create a new repository. The server responds +with "200 OK" if the repository structure was created successfully or already +exists, otherwise an error is returned. + +## DELETE {path} + +Deletes the repository on the server side. The server responds with "200 OK" if +the repository was successfully removed. If this function is not implemented +the server returns "501 Not Implemented", if this it is denied by the server it +returns "403 Forbidden". + ## HEAD {path}/config Returns "200 OK" if the repository has a configuration,