Add blocks API

This commit is contained in:
Eugen Rochko 2018-10-05 01:12:00 +02:00
parent cb9ed818f6
commit 51c61c151b
2 changed files with 26 additions and 4 deletions

View File

@ -5,3 +5,23 @@ menu:
parent: api
weight: 10
---
## GET /api/v1/blocks
Returns array of [Account]({{< relref "entities.md#account" >}})
### Resource information
{{< api_method_info auth="Yes" user="Yes" scope="read read:blocks follow" version="0.0.0" >}}
### Parameters
|Name|Description|Required|Default|
|----|-----------|:------:|:-----:|
| `max_id` | Return results older than ID | Optional ||
| `since_id` | Return results newer than ID | Optional ||
| `limit` | Maximum number of results | Optional | 40 |
### Pagination
{{< api_pagination >}}

View File

@ -15,10 +15,12 @@
<td>{{ .Get "user" }}</td>
</tr>
<tr>
<th style="text-align: left">Scope</th>
<td><code>{{ .Get "scope" }}</code></td>
</tr>
{{ with .Get "scope" }}
<tr>
<th style="text-align: left">Scope</th>
<td><code>{{.}}</code></td>
</tr>
{{ end }}
<tr>
<th style="text-align: left">Available since</th>