package com.afrosoft.apibuilder.api.v0.models; import java.lang.Long; import java.lang.String; import java.lang.Void; import java.util.UUID; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Path; import retrofit2.http.Query; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/secret/apibuilder-api/0.0.1-dev/android_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 and retrofit2 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 MembershipRequestsClient { /** * Search all membership requests. Results are always paginated. */ @GET("membership_requests") Call getMembershipRequests(@Query("org_guid") UUID orgGuid, @Query("org_key") String orgKey, @Query("user_guid") UUID userGuid, @Query("role") String role, @Query("limit") Long limit, @Query("offset") Long offset); /** * Create a membership request */ @POST("membership_requests") Call postMembershipRequests(@Query("org_guid") UUID orgGuid, @Query("user_guid") UUID userGuid, @Query("role") String role); /** * Accepts this membership request. User will become a member of the specified organization. */ @POST("membership_requests/{guid}/accept") Call postMembershipRequestsGuidAccept(@Path("guid") UUID guid); /** * Declines this membership request. User will NOT become a member of the specified organization. */ @POST("membership_requests/{guid}/decline") Call postMembershipRequestsGuidDecline(@Path("guid") UUID guid); }