getItem

@GetMapping(headers = "token", path = "/{" + COLLECTION_IDENTIFIER_KEY + "}")
open fun <T> getItem(@RequestHeader(value = "token") token: String, @PathVariable(value = "user_id") userId: String, @PathVariable(value = "collection_id") collectionId: String): T

Method to get a collection

Return

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

Parameters

token

: the token of the user

userId

: the identifier of the user

collectionId

: the identifier of the collection to get