Datagraph Best Practices

missing-2xx-response

general > missing-2xx-response


Guidance

APIs with HTTP resources that do not return 2xx success responses cannot be added to the unified schema.

Message

All endpoints must have a 2xx response.

Examples

valid

paths:
  /users:
    get:
      summary: Returns a list of users
      responses:
        '200'

invalid

paths:
  /users:
    get:
      summary: Returns a list of users
      responses:
        '400'

Applies to Operation

Constraint

Type: Declarative Validation
TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onNov 29, 2023
Asset overview

Asset versions for 1.1.x

Asset versions
VersionActions
1.1.0

Tags