naftiko: 1.0.0-alpha2 info: label: BlaBlaCar Bus API — Bookings description: 'BlaBlaCar Bus API — Bookings. 3 operations. Lead operation: BlaBlaCar Bus Create Booking. Self-contained Naftiko capability covering one Blablacar Bus Api business surface.' tags: - Blablacar Bus Api - Bookings created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BLABLACAR_BUS_API_API_KEY: BLABLACAR_BUS_API_API_KEY capability: consumes: - type: http namespace: blablacar-bus-bookings baseUri: https://bus-api.blablacar.com/v1 description: BlaBlaCar Bus API — Bookings business capability. Self-contained, no shared references. resources: - name: bookings path: /bookings operations: - name: createbooking method: POST description: BlaBlaCar Bus Create Booking outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: bookings-booking_id path: /bookings/{booking_id} operations: - name: getbooking method: GET description: BlaBlaCar Bus Get Booking outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: booking_id in: path type: string description: Unique booking identifier required: true - name: cancelbooking method: DELETE description: BlaBlaCar Bus Cancel Booking outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: booking_id in: path type: string description: Unique booking identifier to cancel required: true authentication: type: apikey key: X-API-Key value: '{{env.BLABLACAR_BUS_API_API_KEY}}' placement: header exposes: - type: rest namespace: blablacar-bus-bookings-rest port: 8080 description: REST adapter for BlaBlaCar Bus API — Bookings. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/bookings name: bookings description: REST surface for bookings. operations: - method: POST name: createbooking description: BlaBlaCar Bus Create Booking call: blablacar-bus-bookings.createbooking with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/bookings/{booking-id} name: bookings-booking-id description: REST surface for bookings-booking_id. operations: - method: GET name: getbooking description: BlaBlaCar Bus Get Booking call: blablacar-bus-bookings.getbooking with: booking_id: rest.booking_id outputParameters: - type: object mapping: $. - method: DELETE name: cancelbooking description: BlaBlaCar Bus Cancel Booking call: blablacar-bus-bookings.cancelbooking with: booking_id: rest.booking_id outputParameters: - type: object mapping: $. - type: mcp namespace: blablacar-bus-bookings-mcp port: 9090 transport: http description: MCP adapter for BlaBlaCar Bus API — Bookings. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: blablacar-bus-create-booking description: BlaBlaCar Bus Create Booking hints: readOnly: false destructive: false idempotent: false call: blablacar-bus-bookings.createbooking with: body: tools.body outputParameters: - type: object mapping: $. - name: blablacar-bus-get-booking description: BlaBlaCar Bus Get Booking hints: readOnly: true destructive: false idempotent: true call: blablacar-bus-bookings.getbooking with: booking_id: tools.booking_id outputParameters: - type: object mapping: $. - name: blablacar-bus-cancel-booking description: BlaBlaCar Bus Cancel Booking hints: readOnly: false destructive: true idempotent: true call: blablacar-bus-bookings.cancelbooking with: booking_id: tools.booking_id outputParameters: - type: object mapping: $.