Refine search
@PUT @Path("transactions/{transactionId}/resend_request") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) CoinbaseBaseResponse resendRequest( @PathParam("transactionId") String transactionId, @HeaderParam("ACCESS_KEY") String apiKey, @HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer, @HeaderParam("ACCESS_NONCE") SynchronizedValueFactory<Long> nonce) throws IOException, CoinbaseException;
@PUT @Path("/tasks/scheduletasks") @ApiOperation("Schedule tasks") public Map<String, String> scheduleTasks() { try { return _pinotTaskManager.scheduleTasks(); } catch (Exception e) { throw new WebApplicationException(e); } }
@Timed @PUT @Path("/signed") @Consumes(MediaType.APPLICATION_JSON) public void setSignedKey(@Auth Account account, @Valid SignedPreKey signedPreKey) { Device device = account.getAuthenticatedDevice().get(); boolean wasAccountActive = account.isActive(); device.setSignedPreKey(signedPreKey); accounts.update(account); if (!wasAccountActive && account.isActive()) { directoryQueue.addRegisteredUser(account.getNumber()); } }
/** * Reload the graphs for all registered routerIds from disk. */ @RolesAllowed({ "ROUTERS" }) @PUT @Produces({ MediaType.APPLICATION_JSON }) public Response reloadGraphs(@QueryParam("path") String path, @QueryParam("preEvict") @DefaultValue("true") boolean preEvict, @QueryParam("force") @DefaultValue("true") boolean force) { otpServer.getGraphService().reloadGraphs(preEvict, force); return Response.status(Status.OK).build(); }
@PUT @Path("config") @ApiOperation("Update authentication providers configuration") @RequiresPermissions({CLUSTER_CONFIG_ENTRY_READ, AUTHENTICATION_EDIT}) @AuditEvent(type = AuditEventTypes.AUTHENTICATION_PROVIDER_CONFIGURATION_UPDATE) public AuthenticationConfig create(@ApiParam(name = "config", required = true) final AuthenticationConfig config) { clusterConfigService.write(config); return clusterConfigService.getOrDefault(AuthenticationConfig.class, config); } }
/** * store key-values on scouter key-value store */ @PUT @Path("/:bulk") @Consumes(MediaType.APPLICATION_JSON) public CommonResultView<List<KeyValueData>> setBulk(SetKvBulkRequest request) { List<KeyValueData> resultList = kvStoreService.setBulk(request.toMap(), request.getTtl(), ServerManager.getInstance().getServerIfNullDefault(request.getServerId())); return CommonResultView.success(resultList); } }
@PUT @Path("users/{userId}") @Consumes(MediaType.APPLICATION_JSON) CoinbaseUser updateUser( @PathParam("userId") String userId, CoinbaseUser user, @HeaderParam("ACCESS_KEY") String apiKey, @HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer, @HeaderParam("ACCESS_NONCE") SynchronizedValueFactory<Long> nonce) throws IOException, CoinbaseException;
@PUT @Timed @ApiOperation(value = "Update message processor configuration") @Path("config") @AuditEvent(type = AuditEventTypes.MESSAGE_PROCESSOR_CONFIGURATION_UPDATE) public MessageProcessorsConfigWithDescriptors updateConfig(@ApiParam(name = "config", required = true) final MessageProcessorsConfigWithDescriptors configWithDescriptors) { checkPermission(RestPermissions.CLUSTER_CONFIG_ENTRY_EDIT); final MessageProcessorsConfig config = configWithDescriptors.toConfig(); clusterConfigService.write(config.withProcessors(processorClassNames)); return configWithDescriptors; } }
@PUT @Path("transactions/{transactionId}/complete_request") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) CoinbaseTransaction completeRequest( @PathParam("transactionId") String transactionId, @HeaderParam("ACCESS_KEY") String apiKey, @HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer, @HeaderParam("ACCESS_NONCE") SynchronizedValueFactory<Long> nonce) throws IOException, CoinbaseException;