Commit 51c61c15 authored by Eugen Rochko's avatar Eugen Rochko

Add blocks API

parent cb9ed818
......@@ -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 >}}
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment