Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
noellabo
docs
Commits
51c61c15
Commit
51c61c15
authored
Oct 04, 2018
by
Eugen Rochko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blocks API
parent
cb9ed818
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
blocks.md
content/en/api/rest/blocks.md
+20
-0
api_method_info.html
layouts/shortcodes/api_method_info.html
+6
-4
No files found.
content/en/api/rest/blocks.md
View file @
51c61c15
...
...
@@ -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
>
}}
layouts/shortcodes/api_method_info.html
View file @
51c61c15
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment