Skip to content

Commit

Permalink
Add blocks, endorsements, favourites APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Oct 4, 2018
1 parent 51c61c1 commit fe6c3c9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 0 additions & 2 deletions content/en/api/rest/blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Returns array of [Account]({{< relref "entities.md#account" >}})

|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
Expand Down
12 changes: 12 additions & 0 deletions content/en/api/rest/endorsements.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ menu:
parent: api
weight: 10
---

## GET /api/v1/endorsements

Returns array of [Account]({{< relref "entities.md#account" >}})

### Resource information

{{< api_method_info auth="Yes" user="Yes" scope="read read:account" version="0.0.0" >}}

### Pagination

{{< api_pagination >}}
18 changes: 18 additions & 0 deletions content/en/api/rest/favourites.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,21 @@ menu:
parent: api
weight: 10
---

## GET /api/v1/favourites

Returns array of [Status]({{< relref "entities.md#status" >}})

### Resource information

{{< api_method_info auth="Yes" user="Yes" scope="read read:favourites" version="0.0.0" >}}

### Parameters

|Name|Description|Required|Default|
|----|-----------|:------:|:-----:|
| `limit` | Maximum number of results | Optional | 20 |

### Pagination

{{< api_pagination >}}

0 comments on commit fe6c3c9

Please sign in to comment.