mirror of
https://github.com/restic/restic.git
synced 2024-12-23 16:26:11 +00:00
Merge pull request #750 from restic/document-rest-create-repo
Document creating a new repo via REST
This commit is contained in:
commit
844c959912
1 changed files with 13 additions and 0 deletions
|
@ -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
|
`index`, `config`. `{path}` is a path to the repository, so that multiple
|
||||||
different repositories can be accessed. The default path is `/`.
|
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
|
## HEAD {path}/config
|
||||||
|
|
||||||
Returns "200 OK" if the repository has a configuration,
|
Returns "200 OK" if the repository has a configuration,
|
||||||
|
|
Loading…
Reference in a new issue