Callback Endpoint Configuration for large payloads (draft sample)

Callback Endpoint Configuration for large payloads (draft sample)

Suggested Settings for Various API Servers

Common server list and recommended settings:

ASP.NET (Classic)

<system.web>

<httpRuntime maxRequestLength="10240" />

</system.web>

 

ASP.NET Core (C#)

app.Use(async (context, next) =>

    {

        context.Features.Get<IHttpMaxRequestBodySizeFeature>().MaxRequestBodySize
        = 104857600;

        await next.Invoke();

    });

 

Express.js (Node.js)

app.use(express.json({ limit: '10mb' }));

 

FastAPI (Python)

Handled at ASGI server level (e.g., Uvicorn) or middleware. No built-in limit in FastAPI itself.

 

Flask (Python)

app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024

 

Django (Python)

Use DATA_UPLOAD_MAX_MEMORY_SIZE in settings or configure web server (Nginx, etc.).

 

Nginx

client_max_body_size 10M;

 

  Koa.js (Node.js)

app.use(bodyParser({ jsonLimit: '10mb' }));

 

Spring Boot (Java)

spring.servlet.multipart.max-request-size=10MB

spring.servlet.multipart.max-file-size=10MB

  Ruby on Rails

Adjust Rack limits or configure the web server (Nginx/Apache).

 

Go (Golang)

r.Body = http.MaxBytesReader(w, r.Body, 10<<20)

 

Phoenix Framework (Elixir)

plug Plug.Parsers,

      parsers: [:urlencoded, :multipart,
        :json],

      pass: ["*/*"],

      json_decoder: Jason,

      length: 10_000_000

 

Actix-web (Rust)

.app_data(web::JsonConfig::default().limit(10240))

 



    • Related Articles

    • MedWand Telemedicine API V2.x User Guide

      Welcome Welcome to the MedWand Telemedicine API Version 2.x MedWand offers a set of pre-built API resources you can use to integrate the MedWand VirtualCare platform with your current system. By taking advantage of our pre-built API resources, you ...
    • Error and Status Messages

      While using the MedWand device and VirtualCare Application, you may encounter various types of status or error messages, depending on the sensor currently in use. Listed below are explanations of these statuses and what actions need to be taken to ...
    • MedWand Device Technical Specifications

      MedWand Device Technical Specifications General: Intended for use on and by adults (18yrs or older) Non-cytotoxic for all patients and user contact per ISO 10993-5. Non-irritating and non-sensitizing for all patient and user contact per ISO 10993-10. ...
    • Release Notes

      Scheduled Release: 3/20/2026 Android Client (International) : v2.1.5.149 Android Client (US/CA) : v2.1.3.339 [571] Hot-Fix Support for MedWand Camera Previously Released: 3/11/2026 - 7:00PM CDT API : v2.0.6.104 [561] API Endpoint for Offline Mode ...