getPosts

@GET(value = "/photos")
abstract suspend fun getPosts(): List<NetworkPost>

Retrieves a list of network posts from the specified endpoint.

This function uses the HTTP GET method to retrieve a list of network posts from the "/posts" endpoint.

Return

A List of NetworkPost objects representing the retrieved network posts.