UsersApi

interface UsersApi

Interface for interacting with user data.

Functions

Link copied to clipboard
@GET(value = "api/v1/users/{id}")
abstract fun get(@Path(value = "id") userId: String, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<User>

Retrieves a user by their ID.

Link copied to clipboard
@GET(value = "api/v1/users")
abstract fun list(@Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<List<User>>

Retrieves a list of users.