package nm.joglog.api.v0.models; import io.reactivex.Single; import java.lang.Integer; import java.lang.String; import retrofit2.http.Body; import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.PATCH; import retrofit2.http.POST; import retrofit2.http.Path; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/nicolai-moraru/joglog-api/0.0.1-dev/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * */ public interface UsersClient { /** * Authentication */ @POST("users/authenticate") Single postUsersAuthenticate(@Body user.Minimal user.Minimal); /** * Create a user */ @POST("users") Single postUsers(@Body user.Minimal user.Minimal); /** * List all users */ @GET("users") Single getUsers(); /** * Get a specific user */ @GET("users/{id}") Single getUsersId(@Path("id") Integer id); /** * Patch a user */ @PATCH("users") Single patchUsers(@Body user.patch.Entry[] user.patch.Entry); /** * Remove a specific user */ @DELETE("users/{id}") Single deleteUsersId(@Path("id") Integer id); }