Anypoint Best Practices

(14 reviews)

non-scalar-url-parameters

general > non-scalar-url-parameters


Guidance

Encoding complex objects into URL parameters is not a standardized way of passing information that cannot be
automatically processed. Complex information should be passed in the body of the HTTP request.

Message

Do not encode '{{core.name}}' into URL parameters. Use the body of the HTTP request instead.

Examples

valid

/endpoint:
  get:
    displayName: get
    queryParameters:
      someParam:
          type: string[]

invalid

/endpoint:
  get:
    displayName: get
    queryParameters:
      someParam:
          type: object

Applies to Parameter

Constraint

Type: Declarative Validation

Reviews

TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onDec 11, 2023
Asset overview

Asset versions for 1.6.x

Asset versions
VersionActions
1.6.1
1.6.0

Tags