DermatoBackendEndpoint

Functions

Link copied to clipboard
@Multipart
@POST(value = "/analyze-skin")
abstract suspend fun analyzeSkin(@Part image: MultipartBody.Part): SkinAnalysisResponse
Link copied to clipboard
@POST(value = "appointments/create")
abstract suspend fun createAppointment(@Body appointmentRequest: AppointmentRequest): AppointmentResponse
Link copied to clipboard
@DELETE(value = "appointments/delete/{id}")
abstract suspend fun deleteAppointment(@Path(value = "id") id: String)
Link copied to clipboard
@GET(value = "doctors/all")
abstract suspend fun getAllDoctors(): DoctorsResponse
Link copied to clipboard
@GET(value = "/api/discussions/{id}")
abstract suspend fun getDiskusi(@Path(value = "id") id: String): Diskusi
Link copied to clipboard
@DELETE(value = "/hapus-diskusi/{id}")
abstract suspend fun hapusDiskusi(@Path(value = "id") id: String): GeneralResponse
Link copied to clipboard
@DELETE(value = "/hapus-komentar/{id}")
abstract suspend fun hapusKomentar(@Path(value = "id") id: String): GeneralResponse
Link copied to clipboard
@GET(value = "/api/discussions/all")
abstract suspend fun listDiskusi(): ListDiskusiResponse
Link copied to clipboard
@GET(value = "/api/discussions/user/{id}")
abstract suspend fun listDiskusiByUser(@Path(value = "id") userId: String): List<Diskusi>
Link copied to clipboard
@Multipart
@POST(value = "/api/discussions")
abstract suspend fun tambahDiskusi(@Part(value = "title") judul: RequestBody, @Part(value = "content") isi: RequestBody, @Part(value = "category") kategori: RequestBody, @Part(value = "userId") idPengguna: RequestBody, @Part file: MultipartBody.Part?): TambahDiskusiResponse
Link copied to clipboard
@POST(value = "/add-komentar")
abstract suspend fun tambahKomentar(@Body requestBody: TambahKomentarRequest): TambahKomentarResponse