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