CantEatApiService

Interface for the CantEatApiService. It contains the methods for managing CantEat data in the API.

Functions

Link copied to clipboard
@DELETE(value = "canteats/{id}")
abstract suspend fun deleteCantEat(@Path(value = "id") id: String): ApiCantEat

Deletes a CantEat item from the API.

Link copied to clipboard

Extension function to convert the deleteCantEat function to a Flow.

Link copied to clipboard
@GET(value = "canteats")
abstract suspend fun getCantEats(): List<ApiCantEat>

Fetches all CantEat items from the API.

Link copied to clipboard

Extension function to convert the getCantEats function to a Flow.

Link copied to clipboard
@POST(value = "canteats")
abstract suspend fun postCantEat(@Body cantEat: ApiCantEat): ApiCantEat

Posts a new CantEat item to the API.

Link copied to clipboard

Extension function to convert the postCantEat function to a Flow.

Link copied to clipboard
@PUT(value = "canteats/{id}")
abstract suspend fun putCantEat(@Path(value = "id") id: String, @Body cantEat: ApiCantEat): ApiCantEat

Updates a CantEat item in the API.

Link copied to clipboard

Extension function to convert the putCantEat function to a Flow.