mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
briar-headless: POST text as JSON in body instead of form parameter
This commit is contained in:
@@ -101,7 +101,13 @@ Attention: There can messages of other `type`s where the message `body` is `null
|
||||
|
||||
`POST /messages/{contactId}`
|
||||
|
||||
The text of the message should be included in the form parameter `text`.
|
||||
The text of the message should be posted as JSON:
|
||||
|
||||
```json
|
||||
{
|
||||
"text": "Hello World!"
|
||||
}
|
||||
```
|
||||
|
||||
### Listing blog posts
|
||||
|
||||
@@ -132,7 +138,13 @@ Returns a JSON array of blog posts:
|
||||
|
||||
`POST /v1/blogs/posts`
|
||||
|
||||
The text of the blog post should be included in the form parameter `text`.
|
||||
The text of the blog post should be posted as JSON:
|
||||
|
||||
```json
|
||||
{
|
||||
"text": "Hello Blog World!"
|
||||
}
|
||||
```
|
||||
|
||||
## Websocket API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user