contains
fun <TElementEndpoint : ElementEndpoint<*>> IndexerEndpoint<TElementEndpoint>.contains(id: String): Boolean
Determines whether the collection contains a specific element.
Parameters
id
The ID identifying the element.
Throws
when the server responds with HttpStatusCode.Unauthorized.
when the server responds with HttpStatusCode.Forbidden.
for other non-success status codes.
fun <TEntity, TElementEndpoint : ElementEndpoint<TEntity>> GenericCollectionEndpoint<TEntity, TElementEndpoint>.contains(entity: TEntity): Boolean
Determines whether the collection contains a specific element.
Parameters
entity
An existing entity to extract the ID from.
Throws
when the server responds with HttpStatusCode.Unauthorized.
when the server responds with HttpStatusCode.Forbidden.
for other non-success status codes.