Add method to delete all private messages to REST API

Needed for https://code.briarproject.org/briar/briar-gtk/-/issues/11.

Fixes #1782
This commit is contained in:
Nico Alt
2020-09-25 18:30:44 +02:00
parent 1f246637e2
commit 6c6dbfd357
5 changed files with 46 additions and 0 deletions

View File

@@ -247,6 +247,12 @@ needs to be provided in the request body as follows:
}
```
### Deleting all private messages
`DELETE /v1/messages/{contactId}/all`
It returns with a status code `200`, if removal was successful.
### Listing blog posts
`GET /v1/blogs/posts`