Skip to content

Returns a specific blog post.

GET
/api/blog/{blogPostId}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

blogPostId*

which post to return

Typeinteger
Required

Responses

Success.
JSON
{
"id": 0,
"title": "string",
"content": "string",
"publishedAt": "string",
"authorName": "string",
"picture": "string"
}
Authorization
api_key
Variables
Key
Value
blogPostId*
cURL
curl -X GET \
'http://localhost/api/blog/{blogPostId}'

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())