naftiko: 1.0.0-alpha2 info: label: JupyterHub REST API — Admin description: 'JupyterHub REST API — Admin. 1 operations. Lead operation: JupyterHub Shutdown. Self-contained Naftiko capability covering one Jupyterhub business surface.' tags: - Jupyterhub - Admin created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: JUPYTERHUB_API_KEY: JUPYTERHUB_API_KEY capability: consumes: - type: http namespace: rest-admin baseUri: http://localhost:8000/hub/api description: JupyterHub REST API — Admin business capability. Self-contained, no shared references. resources: - name: shutdown path: /shutdown operations: - name: shutdownhub method: POST description: JupyterHub Shutdown outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.JUPYTERHUB_API_KEY}}' exposes: - type: rest namespace: rest-admin-rest port: 8080 description: REST adapter for JupyterHub REST API — Admin. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/shutdown name: shutdown description: REST surface for shutdown. operations: - method: POST name: shutdownhub description: JupyterHub Shutdown call: rest-admin.shutdownhub outputParameters: - type: object mapping: $. - type: mcp namespace: rest-admin-mcp port: 9090 transport: http description: MCP adapter for JupyterHub REST API — Admin. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: jupyterhub-shutdown description: JupyterHub Shutdown hints: readOnly: false destructive: false idempotent: false call: rest-admin.shutdownhub outputParameters: - type: object mapping: $.