Anypoint Best Practices

(14 reviews)

path-not-include-query

general > path-not-include-query


Guidance / Message

{{apiContract.path}} is invalid. Don't put query string items in the path. They belong in parameters with `in: query`.

Examples

valid

#%RAML 1.0
title: example api
version: 1.0.0
/events:

invalid

#%RAML 1.0
title: example api
version: 1.0.0
/events?somequery:

Applies to EndPoint

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