Apache Shiro · Capability

Apache Shiro REST API — Sessions

Apache Shiro REST API — Sessions. 2 operations. Lead operation: Apache Shiro Get Session. Self-contained Naftiko capability covering one Apache Shiro business surface.

Run with Naftiko Apache ShiroSessions

What You Can Do

GET
Getsession — Apache Shiro Get Session
/v1/sessions/{sessionid}
DELETE
Invalidatesession — Apache Shiro Invalidate Session
/v1/sessions/{sessionid}

MCP Tools

apache-shiro-get-session

Apache Shiro Get Session

read-only idempotent
apache-shiro-invalidate-session

Apache Shiro Invalidate Session

idempotent

Capability Spec

rest-sessions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Shiro REST API — Sessions
  description: 'Apache Shiro REST API — Sessions. 2 operations. Lead operation: Apache Shiro Get Session. Self-contained Naftiko
    capability covering one Apache Shiro business surface.'
  tags:
  - Apache Shiro
  - Sessions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_SHIRO_API_KEY: APACHE_SHIRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-sessions
    baseUri: https://app.example.com/api
    description: Apache Shiro REST API — Sessions business capability. Self-contained, no shared references.
    resources:
    - name: sessions-sessionId
      path: /sessions/{sessionId}
      operations:
      - name: getsession
        method: GET
        description: Apache Shiro Get Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sessionId
          in: path
          type: string
          required: true
      - name: invalidatesession
        method: DELETE
        description: Apache Shiro Invalidate Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sessionId
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: rest-sessions-rest
    port: 8080
    description: REST adapter for Apache Shiro REST API — Sessions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/sessions/{sessionid}
      name: sessions-sessionid
      description: REST surface for sessions-sessionId.
      operations:
      - method: GET
        name: getsession
        description: Apache Shiro Get Session
        call: rest-sessions.getsession
        with:
          sessionId: rest.sessionId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: invalidatesession
        description: Apache Shiro Invalidate Session
        call: rest-sessions.invalidatesession
        with:
          sessionId: rest.sessionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-sessions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Shiro REST API — Sessions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-shiro-get-session
      description: Apache Shiro Get Session
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-sessions.getsession
      with:
        sessionId: tools.sessionId
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-shiro-invalidate-session
      description: Apache Shiro Invalidate Session
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-sessions.invalidatesession
      with:
        sessionId: tools.sessionId
      outputParameters:
      - type: object
        mapping: $.