WSO2 · Capability

WSO2 API Manager - Developer Portal — Comments

WSO2 API Manager - Developer Portal — Comments. 12 operations. Lead operation: Retrieve API Comments. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Comments

What You Can Do

GET
Getallcommentsofapi — Retrieve API Comments
/v1/apis/{apiid}/comments
POST
Addcommenttoapi — Add an API Comment
/v1/apis/{apiid}/comments
GET
Getcommentofapi — Get Details of an API Comment
/v1/apis/{apiid}/comments/{commentid}
PATCH
Editcommentofapi — Edit a comment
/v1/apis/{apiid}/comments/{commentid}
DELETE
Deletecomment — Delete an API Comment
/v1/apis/{apiid}/comments/{commentid}
GET
Getrepliesofcomment — Get replies of a comment
/v1/apis/{apiid}/comments/{commentid}/replies
GET
Getallcommentsofmcpserver — Retrieve MCP Server Comments
/v1/mcp-servers/{mcpserverid}/comments
POST
Addcommenttomcpserver — Add a MCP Server Comment
/v1/mcp-servers/{mcpserverid}/comments
GET
Getcommentofmcpserver — Get Details of a MCP Server Comment
/v1/mcp-servers/{mcpserverid}/comments/{commentid}
PATCH
Editcommentofmcpserver — Edit a comment
/v1/mcp-servers/{mcpserverid}/comments/{commentid}
DELETE
Deletecommentofmcpserver — Delete a MCP Server Comment
/v1/mcp-servers/{mcpserverid}/comments/{commentid}
GET
Getrepliesofcommentofmcpserver — Get replies of a comment
/v1/mcp-servers/{mcpserverid}/comments/{commentid}/replies

MCP Tools

retrieve-api-comments

Retrieve API Comments

read-only idempotent
add-api-comment

Add an API Comment

get-details-api-comment

Get Details of an API Comment

read-only idempotent
edit-comment

Edit a comment

idempotent
delete-api-comment

Delete an API Comment

idempotent
get-replies-comment

Get replies of a comment

read-only idempotent
retrieve-mcp-server-comments

Retrieve MCP Server Comments

read-only idempotent
add-mcp-server-comment

Add a MCP Server Comment

get-details-mcp-server-comment

Get Details of a MCP Server Comment

read-only idempotent
edit-comment-2

Edit a comment

idempotent
delete-mcp-server-comment

Delete a MCP Server Comment

idempotent
get-replies-comment-2

Get replies of a comment

read-only idempotent

Capability Spec

devportal-comments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Developer Portal — Comments
  description: 'WSO2 API Manager - Developer Portal — Comments. 12 operations. Lead operation: Retrieve API Comments. Self-contained
    Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Comments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: devportal-comments
    baseUri: https://apis.wso2.com/api/am/devportal/v3
    description: WSO2 API Manager - Developer Portal — Comments business capability. Self-contained, no shared references.
    resources:
    - name: apis-apiId-comments
      path: /apis/{apiId}/comments
      operations:
      - name: getallcommentsofapi
        method: GET
        description: Retrieve API Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addcommenttoapi
        method: POST
        description: Add an API Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: apis-apiId-comments-commentId
      path: /apis/{apiId}/comments/{commentId}
      operations:
      - name: getcommentofapi
        method: GET
        description: Get Details of an API Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: editcommentofapi
        method: PATCH
        description: Edit a comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecomment
        method: DELETE
        description: Delete an API Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: apis-apiId-comments-commentId-replies
      path: /apis/{apiId}/comments/{commentId}/replies
      operations:
      - name: getrepliesofcomment
        method: GET
        description: Get replies of a comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: mcp-servers-mcpServerId-comments
      path: /mcp-servers/{mcpServerId}/comments
      operations:
      - name: getallcommentsofmcpserver
        method: GET
        description: Retrieve MCP Server Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addcommenttomcpserver
        method: POST
        description: Add a MCP Server Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: mcp-servers-mcpServerId-comments-commentId
      path: /mcp-servers/{mcpServerId}/comments/{commentId}
      operations:
      - name: getcommentofmcpserver
        method: GET
        description: Get Details of a MCP Server Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: editcommentofmcpserver
        method: PATCH
        description: Edit a comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecommentofmcpserver
        method: DELETE
        description: Delete a MCP Server Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: mcp-servers-mcpServerId-comments-commentId-replies
      path: /mcp-servers/{mcpServerId}/comments/{commentId}/replies
      operations:
      - name: getrepliesofcommentofmcpserver
        method: GET
        description: Get replies of a comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: devportal-comments-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Developer Portal — Comments. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/apis/{apiid}/comments
      name: apis-apiid-comments
      description: REST surface for apis-apiId-comments.
      operations:
      - method: GET
        name: getallcommentsofapi
        description: Retrieve API Comments
        call: devportal-comments.getallcommentsofapi
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcommenttoapi
        description: Add an API Comment
        call: devportal-comments.addcommenttoapi
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/{apiid}/comments/{commentid}
      name: apis-apiid-comments-commentid
      description: REST surface for apis-apiId-comments-commentId.
      operations:
      - method: GET
        name: getcommentofapi
        description: Get Details of an API Comment
        call: devportal-comments.getcommentofapi
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: editcommentofapi
        description: Edit a comment
        call: devportal-comments.editcommentofapi
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecomment
        description: Delete an API Comment
        call: devportal-comments.deletecomment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/{apiid}/comments/{commentid}/replies
      name: apis-apiid-comments-commentid-replies
      description: REST surface for apis-apiId-comments-commentId-replies.
      operations:
      - method: GET
        name: getrepliesofcomment
        description: Get replies of a comment
        call: devportal-comments.getrepliesofcomment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/mcp-servers/{mcpserverid}/comments
      name: mcp-servers-mcpserverid-comments
      description: REST surface for mcp-servers-mcpServerId-comments.
      operations:
      - method: GET
        name: getallcommentsofmcpserver
        description: Retrieve MCP Server Comments
        call: devportal-comments.getallcommentsofmcpserver
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcommenttomcpserver
        description: Add a MCP Server Comment
        call: devportal-comments.addcommenttomcpserver
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/mcp-servers/{mcpserverid}/comments/{commentid}
      name: mcp-servers-mcpserverid-comments-commentid
      description: REST surface for mcp-servers-mcpServerId-comments-commentId.
      operations:
      - method: GET
        name: getcommentofmcpserver
        description: Get Details of a MCP Server Comment
        call: devportal-comments.getcommentofmcpserver
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: editcommentofmcpserver
        description: Edit a comment
        call: devportal-comments.editcommentofmcpserver
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecommentofmcpserver
        description: Delete a MCP Server Comment
        call: devportal-comments.deletecommentofmcpserver
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/mcp-servers/{mcpserverid}/comments/{commentid}/replies
      name: mcp-servers-mcpserverid-comments-commentid-replies
      description: REST surface for mcp-servers-mcpServerId-comments-commentId-replies.
      operations:
      - method: GET
        name: getrepliesofcommentofmcpserver
        description: Get replies of a comment
        call: devportal-comments.getrepliesofcommentofmcpserver
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: devportal-comments-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Developer Portal — Comments. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: retrieve-api-comments
      description: Retrieve API Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-comments.getallcommentsofapi
      outputParameters:
      - type: object
        mapping: $.
    - name: add-api-comment
      description: Add an API Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: devportal-comments.addcommenttoapi
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-details-api-comment
      description: Get Details of an API Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-comments.getcommentofapi
      outputParameters:
      - type: object
        mapping: $.
    - name: edit-comment
      description: Edit a comment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: devportal-comments.editcommentofapi
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-api-comment
      description: Delete an API Comment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: devportal-comments.deletecomment
      outputParameters:
      - type: object
        mapping: $.
    - name: get-replies-comment
      description: Get replies of a comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-comments.getrepliesofcomment
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-mcp-server-comments
      description: Retrieve MCP Server Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-comments.getallcommentsofmcpserver
      outputParameters:
      - type: object
        mapping: $.
    - name: add-mcp-server-comment
      description: Add a MCP Server Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: devportal-comments.addcommenttomcpserver
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-details-mcp-server-comment
      description: Get Details of a MCP Server Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-comments.getcommentofmcpserver
      outputParameters:
      - type: object
        mapping: $.
    - name: edit-comment-2
      description: Edit a comment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: devportal-comments.editcommentofmcpserver
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-mcp-server-comment
      description: Delete a MCP Server Comment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: devportal-comments.deletecommentofmcpserver
      outputParameters:
      - type: object
        mapping: $.
    - name: get-replies-comment-2
      description: Get replies of a comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-comments.getrepliesofcommentofmcpserver
      outputParameters:
      - type: object
        mapping: $.