Your first API Bundle
An API Bundle is a complete authoring workspace. Its root is always api.yaml; child documents
live in known folders and inherit the root apiVersion.
Workspace
Section titled “Workspace”orders-api/├── api.yaml├── routes/│ └── orders.yaml├── targets/│ └── default.yaml└── policies/ └── correlation.policy.yamlRoot manifest
Section titled “Root manifest”api.yaml identifies the bundle and controls route precedence:
apiVersion: centiceps.io/v1kind: GatewayAPIname: orders-apidisplayName: Orders APIbasePath: /ordersrouteOrder: - ordersroutes/orders.yaml matches the inbound request, runs an ordered request flow, and selects a
target:
kind: APIRoutename: ordersmatch: method: POST path: /flows: request: - policy: request-correlationbackend: target: default path: /v2/ordersTarget
Section titled “Target”targets/default.yaml points to an environment-managed target server:
kind: Targetname: defaulturl: https://orders.internalPolicy
Section titled “Policy”policies/correlation.policy.yaml configures a versioned policy type:
kind: Policyname: request-correlationtype: correlation-id/v1enabled: trueonError: faultconfig: header: "X-Correlation-ID" generate: uuidv7 echoInResponse: trueThe physical filename must agree with the document name. Centiceps validates document schemas, known folders, route order, and cross-document references before publication.
Continue with Bundle concepts for revision and reachability behavior.