naftiko: 1.0.0-alpha2 info: label: Strapi Admin Panel API — Admin Roles description: 'Strapi Admin Panel API — Admin Roles. 5 operations. Lead operation: List administrator roles. Self-contained Naftiko capability covering one Strapi business surface.' tags: - Strapi - Admin Roles created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRAPI_API_KEY: STRAPI_API_KEY capability: consumes: - type: http namespace: admin-panel-admin-roles baseUri: https://{host} description: Strapi Admin Panel API — Admin Roles business capability. Self-contained, no shared references. resources: - name: admin-roles path: /admin/roles operations: - name: listadminroles method: GET description: List administrator roles outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createadminrole method: POST description: Create an administrator role outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: admin-roles-id path: /admin/roles/{id} operations: - name: getadminrole method: GET description: Get an administrator role outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateadminrole method: PUT description: Update an administrator role outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteadminrole method: DELETE description: Delete an administrator role outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.STRAPI_API_KEY}}' exposes: - type: rest namespace: admin-panel-admin-roles-rest port: 8080 description: REST adapter for Strapi Admin Panel API — Admin Roles. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/admin/roles name: admin-roles description: REST surface for admin-roles. operations: - method: GET name: listadminroles description: List administrator roles call: admin-panel-admin-roles.listadminroles outputParameters: - type: object mapping: $. - method: POST name: createadminrole description: Create an administrator role call: admin-panel-admin-roles.createadminrole with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/admin/roles/{id} name: admin-roles-id description: REST surface for admin-roles-id. operations: - method: GET name: getadminrole description: Get an administrator role call: admin-panel-admin-roles.getadminrole outputParameters: - type: object mapping: $. - method: PUT name: updateadminrole description: Update an administrator role call: admin-panel-admin-roles.updateadminrole with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteadminrole description: Delete an administrator role call: admin-panel-admin-roles.deleteadminrole outputParameters: - type: object mapping: $. - type: mcp namespace: admin-panel-admin-roles-mcp port: 9090 transport: http description: MCP adapter for Strapi Admin Panel API — Admin Roles. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-administrator-roles description: List administrator roles hints: readOnly: true destructive: false idempotent: true call: admin-panel-admin-roles.listadminroles outputParameters: - type: object mapping: $. - name: create-administrator-role description: Create an administrator role hints: readOnly: false destructive: false idempotent: false call: admin-panel-admin-roles.createadminrole with: body: tools.body outputParameters: - type: object mapping: $. - name: get-administrator-role description: Get an administrator role hints: readOnly: true destructive: false idempotent: true call: admin-panel-admin-roles.getadminrole outputParameters: - type: object mapping: $. - name: update-administrator-role description: Update an administrator role hints: readOnly: false destructive: false idempotent: true call: admin-panel-admin-roles.updateadminrole with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-administrator-role description: Delete an administrator role hints: readOnly: false destructive: true idempotent: true call: admin-panel-admin-roles.deleteadminrole outputParameters: - type: object mapping: $.