package io.apibuilder.api.v0.models; import io.reactivex.Single; import java.lang.Boolean; import java.lang.Long; import java.lang.String; import java.lang.Void; import java.util.UUID; import retrofit2.http.Body; import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.PUT; import retrofit2.http.Path; import retrofit2.http.Query; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.14.3-46-g35788525 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-api/0.14.3-46-g35788525/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 ApplicationsClient { /** * Returns the versions assocoated with the specified application. The latest version is the first result returned. */ @GET("{orgKey}/metadata/{applicationKey}/versions") Single getOrgKeyMetadataApplicationKeyVersions( @Path("orgKey") String orgKey, @Path("applicationKey") String applicationKey, @Query("limit") Long limit, @Query("offset") Long offset); /** * Returns the latest version number as a string */ @GET("{orgKey}/metadata/{applicationKey}/versions/latest.txt") Single getOrgKeyMetadataApplicationKeyVersionsLatestTxt(@Path("orgKey") String orgKey, @Path("applicationKey") String applicationKey); /** * Search all applications. Results are always paginated. */ @GET("{orgKey}") Single getOrgKey(@Path("orgKey") String orgKey, @Query("name") String name, @Query("guid") UUID guid, @Query("key") String key, @Query("has_version") Boolean hasVersion, @Query("limit") Long limit, @Query("offset") Long offset, @Query("sort_by") AppSortBy sortBy, @Query("order") SortOrder order); /** * Create an application. */ @POST("{orgKey}") Single postOrgKey(@Body ApplicationForm applicationForm, @Path("orgKey") String orgKey); /** * Updates an application. */ @PUT("{orgKey}/{applicationKey}") Single putOrgKeyApplicationKey(@Body ApplicationForm applicationForm, @Path("orgKey") String orgKey, @Path("applicationKey") String applicationKey); /** * Deletes a specific application and its associated versions. */ @DELETE("{orgKey}/{applicationKey}") Single deleteOrgKeyApplicationKey(@Path("orgKey") String orgKey, @Path("applicationKey") String applicationKey); /** * Moves application to a new organization. */ @POST("{orgKey}/{applicationKey}/move") Single postOrgKeyApplicationKeyMove(@Body MoveForm moveForm, @Path("orgKey") String orgKey, @Path("applicationKey") String applicationKey); }