@GET("/jokes/random/10") Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName, @Header("pageNumber") int pageNumberIgnored);
@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); }
/** * Executes a signal flow program. * * @param accessToken The SignalFx API Access token associated with the organization that you are querying. * @param startEpochMilli (Optional) start timestamp in milliseconds since epoch * @param endEpochMilli (Optional) stop timestamp in milliseconds since epoch * @param resolution (Optional) the minimum desired data resolution, in milliseconds * @param maxDelay (Optional) desired maximum data delay, in milliseconds between 0 (for automatic maximum delay) and 900000 * @param immediate (Optional) whether to adjust the stop timestamp so that the computation doesn't wait for future data to be available * @param program The signal flow program to execute * @return The list of channel messages from the signal flow output */ @POST("/v2/signalflow/execute") SignalFlowExecutionResult executeSignalFlowProgram(@Header("X-SF-TOKEN") String accessToken, @Query("start") long startEpochMilli, @Query("stop") long endEpochMilli, @Query("resolution") long resolution, @Query("maxDelay") long maxDelay, @Query("immediate") boolean immediate, @Body String program); }
@POST("/playbacklogEntries") Response postPlaybackLogEntries( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
/** * Extract content from a CSV file into a JSON format using HP Haven on Demand using a token proxy * @param token The authentication token * @param reference The object store reference containing the data to be extracted. * @return {@link List} of JSON objects stored as a {@link LinkedHashMap} with column names as keys and cell values as values. */ @GET(URL) Response extractFromReference(@Header("token") AuthenticationToken<?, ?> token, @Query("reference") String reference) throws HodErrorException;
@GET("/2/api/sync/domain/{domain_name}/application/v1") ListApplicationsResponse list( @Header("token") String signature, @Path("domain_name") String domain ) throws HodErrorException;
@POST("/playlistEntries") HatchetPlaylistEntries postPlaylistsPlaylistEntries( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
@GET("/tokens/fetch/{tokentype}") HatchetAuthResponse getAccessToken( @Header("Authorization") String bearerAccessToken, @Path("tokentype") String tokentype );
@POST("/relationships") HatchetPlaylistEntries postRelationship( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
@POST("/playlists") HatchetPlaylistEntries postPlaylists( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
@DELETE("/playlists/{playlist-id}") Response deletePlaylists( @Header("Authorization") String accesstoken, @Path("playlist-id") String playlist_id );
@DELETE("/relationships/{relationship-id}") Response deleteRelationShip( @Header("Authorization") String accesstoken, @Path("relationship-id") String relationship_id );
/** * Extract content from a CSV file into a JSON format using HP Haven on Demand using a token proxy * @param token The authentication token * @param file The bytes of a file containing the data to be extracted. * @return {@link List} of JSON objects stored as a {@link LinkedHashMap} with column names as keys and cell values as values. */ @POST(URL) @Multipart Response extractFromFile(@Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file) throws HodErrorException;
@GET(BASE_PATH + "/{group}" + V1) Response getInfo( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Path("group") String group ) throws HodErrorException;
@GET(USER_BASE_PATH + "/group" + V1) Response listUserGroups( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Path(USER_UUID_VARIABLE) UUID userUuid ) throws HodErrorException;
@PUT("/playlists/{playlist-id}") Response putPlaylists( @Header("Authorization") String accesstoken, @Path("playlist-id") String playlist_id, @Body TypedInput rawBody );
@DELETE("/playlistEntries/{entry-id}") Response deletePlaylistsPlaylistEntries( @Header("Authorization") String accesstoken, @Path("entry-id") String entry_id, @Query("playlist_id") String playlist_id );
@Multipart @POST(FCConstants.API_ENDPOINT_CARDREADER) public void uploadCardForm(@Header(FCConstants.HEADER_AUTH_ACCESS_TOKEN) String accessToken, @QueryMap Map<String, String> opts, @Part("front") TypedOutput frontFile, Callback<CardReaderUploadConfirmResponse> callback);
@POST("/2/authenticate/developer") @Multipart Response authenticateDeveloper( @Header("apiKey") ApiKey apiKey, @Part("tenant") String tenant, @Part("email") String email ) throws HodErrorException;
@Override public Response get(@Header("Authorization") String authToken, @EncodedPath("objectType") String objectType, @Body Collection<String> keys) { verifyAuthToken(authToken); try { Collection<TransientObject> got = dao.get(objectType, keys.toArray(new String[keys.size()])); return new GsonResponse("",200,"",null, got).build(); } catch (DAO.DAOException e) { return new GsonResponse("",e.getStatusCode(),e.getMessage(), null, null).build(); } }