getItem

open fun <T> getItem(token: String, userId: String, itemId: String): T

Method to get an existing item

Return

the item requested, if authorized, or the failed response message as T

Parameters

userId

: the identifier of the user

token

: the token of the user

itemId

: the identifier of the item to get