MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / delete_http_integration

Method delete_http_integration

chirpstack/src/api/application.rs:403–426  ·  view source on GitHub ↗
(
        &self,
        request: Request<api::DeleteHttpIntegrationRequest>,
    )

Source from the content-addressed store, hash-verified

401 }
402
403 async fn delete_http_integration(
404 &self,
405 request: Request<api::DeleteHttpIntegrationRequest>,
406 ) -> Result<Response<()>, Status> {
407 let req = request.get_ref();
408 let app_id = Uuid::from_str(&req.application_id).map_err(|e| e.status())?;
409
410 self.validator
411 .validate(
412 request.extensions(),
413 validator::ValidateApplicationAccess::new(validator::Flag::Update, app_id),
414 )
415 .await?;
416
417 application::delete_integration(&app_id, application::IntegrationKind::Http)
418 .await
419 .map_err(|e| e.status())?;
420
421 let mut resp = Response::new(());
422 resp.metadata_mut()
423 .insert("x-log-application_id", req.application_id.parse().unwrap());
424
425 Ok(resp)
426 }
427
428 async fn create_influx_db_integration(
429 &self,

Callers 1

test_http_integrationFunction · 0.80

Calls 5

delete_integrationFunction · 0.85
statusMethod · 0.80
insertMethod · 0.80
unwrapMethod · 0.80
validateMethod · 0.45

Tested by 1

test_http_integrationFunction · 0.64