Skip to content

Returns a specific blog post.

GET
/api/blog/{blogPostId}

Authorizations

Parameters

Path Parameters

blogPostId*

which post to return

Typeinteger
Required

Responses

Success.
JSON
{
"id": 0,
"title": "string",
"content": "string",
"teaser": "string",
"publishedAt": "string",
"authorName": "string",
"picture": "string"
}

Samples

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