getPost

abstract suspend fun getPost(id: Int): NetworkPost

Retrieves a network post with the specified ID from the designated endpoint.

This function uses the HTTP GET method to retrieve a single network post with the given ID from the "/posts/{id}" endpoint.

Return

A NetworkPost object representing the retrieved network post.

Parameters

id

The ID of the network post to retrieve.