# openapi.api.PostsApi ## Load the API package ```dart import 'package:openapi/api.dart'; ``` All URIs are relative to *https://community.openproject.org* Method | HTTP request | Description ------------- | ------------- | ------------- [**viewPost**](PostsApi.md#viewpost) | **GET** /api/v3/posts/{id} | View Post # **viewPost** > PostModel viewPost(id) View Post Retrieve an individual post as identified by the id parameter ### Example ```dart import 'package:openapi/api.dart'; // TODO Configure HTTP basic authorization: BasicAuth //defaultApiClient.getAuthentication('BasicAuth').username = 'YOUR_USERNAME' //defaultApiClient.getAuthentication('BasicAuth').password = 'YOUR_PASSWORD'; final api_instance = PostsApi(); final id = 1; // int | Post's identifier try { final result = api_instance.viewPost(id); print(result); } catch (e) { print('Exception when calling PostsApi->viewPost: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **int**| Post's identifier | ### Return type [**PostModel**](PostModel.md) ### Authorization [BasicAuth](../README.md#BasicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/hal+json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)