Skip to content

Returns a page from the list of blog posts. The page can be empty if the page number is too large.

GET
/api/blog

Authorizations

Parameters

Query Parameters

page

Which page of updates to return

Typestring

Responses

Successful
JSON
{
"totalPosts": 0
}

Samples

cURL
curl -X GET http://localhost/api/blog
JavaScript
fetch("http://localhost/api/blog")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/blog");
Python
import requests
response = requests.get("http://localhost/api/blog")
print(response.json())