Java 类retrofit2.http.Query 实例源码

项目:GitHub    文件:GoldApis.java   
/**
 * 文章列表
 */
@GET("1.1/classes/Entry")
Flowable<GoldHttpResponse<List<GoldListBean>>> getGoldList(@Header("X-LC-Id") String id,
                                                           @Header("X-LC-Sign") String sign,
                                                           @Query("where") String where,
                                                           @Query("order") String order,
                                                           @Query("include") String include,
                                                           @Query("limit") int limit,
                                                           @Query("skip") int skip);
项目:MyDemo    文件:IDouBanApi.java   
/**
 * 获取电影详情
 *
 * @param id 电影bean里的id
 */
@GET("subject/{id}")
Observable<MovieDetailBean> getMovieDetail(@Path("id") String id,
                                           @Query("apikey") String apikey,
                                           @Query("city") String city,
                                           @Query("client") String client,
                                           @Query("udid") String udid);
项目:ReadMark    文件:IBookSeriesService.java   
@GET("book/series/{seriesId}/books")
Observable<Response<BookSeriesListResponse>>
getBookSeries(
        @Path("seriesId") String seriesId
        , @Query("start") int start
        , @Query("count") int count
        , @Query("fields") String fields);
项目:OpenHub    文件:RepoService.java   
/**
 * List user repositories
 */
@NonNull @GET("users/{user}/repos")
Observable<retrofit2.Response<ArrayList<Repository>>> getUserPublicRepos(
        @Header("forceNetWork") boolean forceNetWork,
        @Path("user") @NonNull String user,
        @Query("page") int page,
        @Query("type") String type,
        @Query("sort") String sort,
        @Query("direction") String direction
);
项目:gplaymusic    文件:GPlayService.java   
@GET("music/{provider}?net=mob&pt=e")
Call<Void> getTrackLocationSongId(@Header("X-Device-ID") String androidID,
                                  @Path("provider") Provider provider,
                                  @Query("opt") StreamQuality quality,
                                  @Query("slt") String salt,
                                  @Query("sig") String signature,
                                  @Query("songid") String trackID,
                                  @QueryMap Map<String, String> kwargs);
项目:GitHub    文件:RequestBuilderTest.java   
@Test public void getWithQueryParam() {
  class Example {
    @GET("/foo/bar/") //
    Call<ResponseBody> method(@Query("ping") String ping) {
      return null;
    }
  }
  Request request = buildRequest(Example.class, "pong");
  assertThat(request.method()).isEqualTo("GET");
  assertThat(request.headers().size()).isZero();
  assertThat(request.url().toString()).isEqualTo("http://example.com/foo/bar/?ping=pong");
  assertThat(request.body()).isNull();
}
项目:anitrend-app    文件:Hub.java   
@GET("videos")
Call<Result<Video>> getRssFeed(@Query("order") String order,
                               @Query("limit") int limit,
                               @Query("page") int page,
                               @Query("expand") String expand,
                               @Query("search") String search,
                               @Query("filter") String filter,
                               @Query("format") String format);
项目:azure-libraries-for-java    文件:WebSiteManagementClientImpl.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.WebSiteManagementClient move" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources")
Observable<Response<ResponseBody>> move(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Body CsmMoveResourceEnvelopeInner moveResourceEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:AppServicePlansInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.AppServicePlans rebootWorker" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot")
Observable<Response<ResponseBody>> rebootWorker(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("workerName") String workerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:mvvm-template    文件:SearchService.java   
@GET("search/users")
Single<Pageable<User>> searchUsers(@Query(value = "q", encoded = true) String query, @Query("page") long page);
项目:azure-libraries-for-java    文件:RecommendedElasticPoolsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.RecommendedElasticPools list" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:NamespacesInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.Namespaces getAuthorizationRule" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}")
Observable<Response<ResponseBody>> getAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:NetworkSecurityGroupsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.NetworkSecurityGroups delete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> delete(@Path("resourceGroupName") String resourceGroupName, @Path("networkSecurityGroupName") String networkSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:yyox    文件:AddressService.java   
@Headers({HEADER_API_VERSION})
@PUT("customer/address/setDefault")
Observable<BaseJson<String>> setDefaultAddress(@Query("id") int id);
项目:mdb-android-application    文件:MoviesService.java   
@GET("movie/{sort}")
Observable<QueryMoviesResponse<MovieEntity>> getMoviesBySortType(@Path("sort") String sort, @Query("page") Integer page);
项目:azure-libraries-for-java    文件:MapsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.Maps listByIntegrationAccounts" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps")
Observable<Response<ResponseBody>> listByIntegrationAccounts(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("integrationAccountName") String integrationAccountName, @Query("api-version") String apiVersion, @Query("$top") Integer top, @Query("$filter") String filter, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:SchedulesInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.devtestlab.Schedules get" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}")
Observable<Response<ResponseBody>> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("labName") String labName, @Path("name") String name, @Query("$expand") String expand, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:Unofficial-Ups    文件:UpcServiceInterface.java   
@GET("RecursosDisponible/")
Observable<ReserveAvailabilityResponse> getReservesAvailability(@QueryMap Map<String,String> filters,
                                                                @Query("CodAlumno") String userCode,
                                                                @Query("Token") String token);
项目:TMvpSimple    文件:ApiService.java   
@GET("top250")
Observable<HttpResult<Subject>> getUser( @Query("touken") String touken);
项目:azure-libraries-for-java    文件:CertificatesInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.Certificates list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:WebAppsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps isCloneableSlot" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/iscloneable")
Observable<Response<ResponseBody>> isCloneableSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:ExpressRouteCircuitsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCircuits beginListArpTable" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}")
Observable<Response<ResponseBody>> beginListArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:AppServiceEnvironmentsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.AppServiceEnvironments listMultiRoleMetricDefinitions" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions")
Observable<Response<ResponseBody>> listMultiRoleMetricDefinitions(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:PolicyAssignmentsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.PolicyAssignments listForResource" })
@GET("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments")
Observable<Response<ResponseBody>> listForResource(@Path("resourceGroupName") String resourceGroupName, @Path("resourceProviderNamespace") String resourceProviderNamespace, @Path(value = "parentResourcePath", encoded = true) String parentResourcePath, @Path(value = "resourceType", encoded = true) String resourceType, @Path("resourceName") String resourceName, @Path("subscriptionId") String subscriptionId, @Query("$filter") String filter, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:LogProfilesInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.monitor.LogProfiles update" })
@PATCH("subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}")
Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("logProfileName") String logProfileName, @Query("api-version") String apiVersion, @Body LogProfileResourcePatchInner logProfilesResource, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:WebAppsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps getSitePhpErrorLogFlagSlot" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/phplogging")
Observable<Response<ResponseBody>> getSitePhpErrorLogFlagSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:speedr    文件:OverpassService.java   
@GET("interpreter")
Single<OverpassResponse> getLimit(@Query("data") String data);
项目:inventum    文件:TvService.java   
@GET("tv/airing_today")
Call<TVResults> airingToday(
        @Query("api_key") String api_key,
        @Query("language") String lang,
        @Query("page") int page
);
项目:Guanajoven    文件:PromocionesAPI.java   
@GET("promociones")
Call<Response<ArrayList<Empresa>>> getEmpresas (
        @Query("timestamp") String timeStamp
);
项目:presto-rest    文件:SlackService.java   
@POST("chat.postMessage")
Call<SlackResponse> postMessage(
        @Query("token") String token,
        @Query("channel") String channel,
        @Query("text") String text);
项目:azure-libraries-for-java    文件:JobCollectionsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.scheduler.JobCollections getByResourceGroup" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}")
Observable<Response<ResponseBody>> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("jobCollectionName") String jobCollectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:VirtualMachineScaleSetsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSets listByResourceGroup" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets")
Observable<Response<ResponseBody>> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:ResourceGroupsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.ResourceGroups patch" })
@PATCH("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}")
Observable<Response<ResponseBody>> patch(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Body ResourceGroupInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:GlobalSchedulesInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.devtestlab.GlobalSchedules retarget" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget")
Observable<Response<ResponseBody>> retarget(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Body RetargetSchedulePropertiesInner retargetScheduleProperties, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:WatchIt    文件:ApiInterface.java   
@GET("discover/movie")
Call<MovieResponse> getMoviesByGenre(@Query("api_key") String apiKey, @Query("page") int pageNo, @Query("with_genres") String genres,
                                     @Query("language") String language, @Query("sort_by") String sortBy);
项目:azure-libraries-for-java    文件:DatabasesInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.Databases listTransparentDataEncryptionActivity" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/current/operationResults")
Observable<Response<ResponseBody>> listTransparentDataEncryptionActivity(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:StreamingJobsInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.streamanalytics.StreamingJobs list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/streamingjobs")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("$expand") String expand, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
项目:azure-libraries-for-java    文件:ClustersInner.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Clusters list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/clusters")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("$filter") String filter, @Query("$select") String select, @Query("maxresults") Integer maxResults, @Header("User-Agent") String userAgent);
项目:Nimbus    文件:ApiInterface.java   
@POST("update/rollno/{id}")
Call<RegisterResponse> updateRollNo(@Path("id") String id,@Query("roll_no") String rollNo);
项目:autorest.java    文件:QueriesImpl.java   
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: fixtures.url.Queries enumValid" })
@GET("queries/enum/green%20color")
Observable<Response<ResponseBody>> enumValid(@Query("enumQuery") UriColor enumQuery);