getBlogPostById method
Returns a specific blog post.
Permissions required: Permission to view the blog post and its corresponding space.
Implementation
Future<BlogPostSingle> getBlogPostById(
{required int id,
String? bodyFormat,
bool? getDraft,
int? version}) async {
return BlogPostSingle.fromJson(await _client.send(
'get',
'blogposts/{id}',
pathParameters: {
'id': '$id',
},
queryParameters: {
if (bodyFormat != null) 'body-format': bodyFormat,
if (getDraft != null) 'get-draft': '$getDraft',
if (version != null) 'version': '$version',
},
));
}