Add blocks API
This commit is contained in:
parent
cb9ed818f6
commit
51c61c151b
|
@ -5,3 +5,23 @@ menu:
|
||||||
parent: api
|
parent: api
|
||||||
weight: 10
|
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>
|
<td>{{ .Get "user" }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
{{ with .Get "scope" }}
|
||||||
<th style="text-align: left">Scope</th>
|
<tr>
|
||||||
<td><code>{{ .Get "scope" }}</code></td>
|
<th style="text-align: left">Scope</th>
|
||||||
</tr>
|
<td><code>{{.}}</code></td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align: left">Available since</th>
|
<th style="text-align: left">Available since</th>
|
||||||
|
|
Loading…
Reference in New Issue