ApiRetrofit

interface ApiRetrofit

Functions

Link copied to clipboard
@GET(value = "events")
abstract fun events(@HeaderMap headers: Map<String, String>, @QueryMap queries: Map<String, String>): Call<EventsResponse>
Link copied to clipboard
@GET(value = "faces")
abstract fun faces(@HeaderMap headers: Map<String, String>, @QueryMap queries: Map<String, String>): Call<FacesResponse>
Link copied to clipboard
@POST(value = "handlers/{handler_id}/events")
abstract fun generateEvent(@Path(value = "handler_id") handlerId: String, @HeaderMap headers: Map<String, String>, @Query(value = "external_id") externalId: String?, @Query(value = "user_data") userData: String?, @Query(value = "image_type") imageType: Int?, @Query(value = "aggregate_attributes") aggregateAttributes: Int?, @Query(value = "source") source: String?, @Query(value = "tags") tags: List<String>?, @Query(value = "track_id") trackId: String?, @Query(value = "use_exif_info") useExifInfo: Int?, @Body payload: RequestBody): Call<EventGenerateResponse>

https://docs.visionlabs.ai/luna/v.5.28.0/ReferenceManuals/APIReferenceManual.html#operation/generateEvents

Link copied to clipboard
@Multipart
@POST(value = "handlers/{handler_id}/events")
abstract fun generateEventDynamic(@Path(value = "handler_id") handlerId: String, @HeaderMap headers: Map<String, String>, @Query(value = "external_id") externalId: String?, @Query(value = "user_data") userData: String?, @Query(value = "image_type") imageType: Int?, @Query(value = "aggregate_attributes") aggregateAttributes: Int?, @Query(value = "source") source: String?, @Query(value = "tags") tags: List<String>?, @Query(value = "track_id") trackId: String?, @Query(value = "use_exif_info") useExifInfo: Int?, @Part image: MultipartBody.Part, @Part policies: MultipartBody.Part? = null, @Part meta: MultipartBody.Part? = null): Call<EventGenerateResponse>

https://docs.visionlabs.ai/luna/v.5.28.0/ReferenceManuals/APIReferenceManual.html#operation/generateEvents

Link copied to clipboard
@POST(value = "images")
abstract fun images(@HeaderMap headers: Map<String, String>, @Body image: RequestBody): Call<ImageResponse>
Link copied to clipboard
@Multipart
@POST(value = "liveness")
abstract fun liveness(@Query(value = "aggregate") aggregate: Int?, @Part meta: MultipartBody.Part?, @Part images: List<MultipartBody.Part>): Call<LivenessResponse>

https://docs.visionlabs.ai/luna/v.5.28.0/ReferenceManuals/APIReferenceManual.html#tag/liveness

Link copied to clipboard
@POST(value = "verifiers/{verifier_id}/verifications")
abstract fun performVerification(@Path(value = "verifier_id") verifierId: String, @HeaderMap headers: Map<String, String>, @Query(value = "face_ids") faceIds: String?, @Query(value = "event_ids") eventIds: String?, @Query(value = "attribute_ids") attributeIds: String?, @Query(value = "external_ids") externalIds: String?, @Query(value = "image_type") imageType: Int?, @Query(value = "use_exif_info") useExifInfo: Int?, @Body payload: RequestBody): Call<VerifyResponse>

https://docs.visionlabs.ai/luna/v.5.28.0/ReferenceManuals/APIReferenceManual.html#operation/postVerifier