From 36f0cc501c433181ddd318e0c0b9e1ad11aa51ae Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Fri, 21 Oct 2022 03:32:14 +0200 Subject: Commit DemoApp. --- .../example/clientapp/interfaces/ImageApiInterface.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ClientApp/app/src/main/java/com/example/clientapp/interfaces/ImageApiInterface.kt (limited to 'ClientApp/app/src/main/java/com/example/clientapp/interfaces') diff --git a/ClientApp/app/src/main/java/com/example/clientapp/interfaces/ImageApiInterface.kt b/ClientApp/app/src/main/java/com/example/clientapp/interfaces/ImageApiInterface.kt new file mode 100644 index 0000000..0a3b826 --- /dev/null +++ b/ClientApp/app/src/main/java/com/example/clientapp/interfaces/ImageApiInterface.kt @@ -0,0 +1,16 @@ +package com.example.clientapp.interfaces + +import com.example.clientapp.data.ImageData +import retrofit2.Call +import retrofit2.http.Body +import retrofit2.http.GET +import retrofit2.http.POST + +const val Base_URL="http://10.0.2.2:5276" + +interface ImageService { + @GET("/api/Image") + fun getRandomImage():Call + @POST("/api/Image") + fun uploadImage(@Body obj:ImageData):Call +} \ No newline at end of file -- cgit v1.2.3