@Headers("Cache-Control: public") @GET(BASE_PARAMETERS_ARTIST) void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);
requestHasBody = methodInfo.hasBody(); } else if (annotationType == Headers.class) { String[] headersToParse = ((Headers) methodAnnotation).value(); if (headersToParse.length == 0) { throw methodError("@Headers annotation is empty.");
@Headers("Cache-Control: public") @GET(BASE_PARAMETERS_ARTIST) void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);
@Headers("Cache-Control: public") @GET("/lyrics") void getLyrics(@Query("artist") String artist, @Query("title") String title, Callback<String> callback); }
@Headers("Cache-Control: public") @GET(BASE_PARAMETERS_ALBUM) void getAlbumInfo(@Query("artist") String artist, @Query("album") String album, Callback<AlbumInfo> callback);
@Headers("Cache-Control: public") @GET(BASE_PARAMETERS_ALBUM) void getAlbumInfo(@Query("artist") String artist, @Query("album") String album, Callback<AlbumInfo> callback);
@Headers("Accept: application/json") @GET("/v1/accounts/{application_key}/query") NewRelicTimeSeries getTimeSeries(@Header("X-Query-Key") String apiKey, @Path("application_key") String applicationKey, @Query("nrql") String query); }
@GET("/pipelines?restricted=false") @Headers("Accept: application/json") Observable<List<Pipeline>> getPipelines();
@Headers("Accept: application/json") @GET("/props/all-keys") List<String> getAllKeys();
@Headers("Accept: application/json") @GET("/props/all") FastPropertiesResponse getAll();
@Headers("Authorization: Client-ID " + CLIENT_ID) @POST("/image") public void uploadImage( @Body TypedInput typedInput, Callback<Responses.ImageResponse> callback ); }
/** * Return the archived sequences with the specified identifiers. * See <a href="http://rest.ensembl.org/documentation/info/archive_post_get">http://rest.ensembl.org/documentation/info/archive_id_post</a>. * * @param id zero or more ids * @return the archived sequences with the specified identifiers * @throws EnsemblRestClientException if an error occurs */ @POST("/archive/id") @Headers("Accept: application/json") ArchivedSequence archivedSequence(@Body String[] id); }
/** * Return an archived sequence with the specified identifier. * See <a href="http://rest.ensembl.org/documentation/info/archive_id_get">http://rest.ensembl.org/documentation/info/archive_id_get</a>. * * @param id id * @return an archived sequence with the specified identifier * @throws EnsemblRestClientException if an error occurs */ @GET("/archive/id/{id}") @Headers("Accept: application/json") ArchivedSequence archivedSequence(@Path("id") String id);
@GET("/pipelines/{application}?refresh=false") @Headers("Accept: application/json") Observable<List<Pipeline>> getPipelines(@Path("application") String application); }
@GET("/userinfos") @Headers("X-Userinfo-Client-Id:" + UserInfo.CLIENT_VERSION_ID) Info getInfos(@Query(value = "ip_address") String ipAddress); }
@Headers({API_KEY, CONTENT_TYPE}) @POST("/gcm/send") Observable<Response<GcmServerService.GcmResponseServer>> sendNotification(@Body GcmServerService.Payload payload); }
@Headers("Content-type: application/context+json") @POST("/ops") Map<String, Object> submitTask(@Body Map task);
@Headers("User-Agent: Retrofit2.0Tutorial-App") @GET("/search/users") Call<GitResult> getUsersNamedTom(@Query("q") String name);
@Headers({ConfigEndpoints.HEADER_APP_ID, ConfigEndpoints.HEADER_REST_API_KEY}) @GET("/users/me") Observable<User> currentSession(@Header("X-Parse-Session-Token") String token);
@Headers("Cache-Control: public") @GET(BASE_PARAMETERS_ARTIST) void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);