How to increase the request size limit in OpenLegacy API

OpenLegacy APIs are Spring WebFlux-based. It uses a default in-memory request size limit of 256 KB. If an API request exceeds 256 KB, update the Spring WebFlux property.

application.yml

spring:
  codec:
    max-in-memory-size: 1MB

Environment variable

SPRING_CODEC_MAX_IN_MEMORY_SIZE=1MB

This is a Spring WebFlux property that should be changed when the request body is expected to exceed the default 256 KB limit.