package com.parkplants.data.api import com.parkplants.data.api.models.* import retrofit2.http.Query import okhttp3.MultipartBody import retrofit2.Response import retrofit2.http.* interface ApiService { @POST("api/auth/login") suspend fun login(@Body request: LoginRequest): Response @GET("api/auth/me") suspend fun me(): Response @GET("api/plant-types") suspend fun getPlantTypes(@Query("all") all: String = "1"): List @GET("api/nurseries") suspend fun getNurseries(): List @POST("api/admin/plant-types") suspend fun createPlantType(@Body request: CreatePlantTypeRequest): PlantType @POST("api/admin/plants") suspend fun createPlant(@Body request: CreatePlantRequest): Plant @Multipart @POST("api/admin/upload/photo") suspend fun uploadPhoto(@Part photo: MultipartBody.Part): UploadResponse }