123456789101112131415161718192021 |
- package com.example.zhulinaapi;
- import retrofit2.Call;
- import retrofit2.http.Body;
- import retrofit2.http.DELETE;
- import retrofit2.http.POST;
- import retrofit2.http.PUT;
- import retrofit2.http.Query;
- public interface RetrofitAPI {
- @POST("Workouts/")
- Call<Mask> createPost(@Body Mask mask);
- @PUT("Workouts/{id}")
- Call<Mask> updateData(@Query("id") int id, @Body Mask mask);
- @DELETE("Workouts/{id}")
- Call<Mask> deleteData(@Query("id") int id);
- }
|