blob: 0a3b82604b27208495332fdf2d35a162bbb99fa8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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<ImageData>
@POST("/api/Image")
fun uploadImage(@Body obj:ImageData):Call<ImageData>
}
|