Web Methods Comment API

The Comment API from Web Methods — 6 operation(s) for comment.

GitHub OpenAPI

Operations 9

GET /topics/{id}/comments Get the list of comments in a topic #
POST /topics/{id}/comments Create a comment in a topic #
GET /topics/{topicId}/comments/{id} Get details of a paricular comment in a topic #
PUT /topics/{topicId}/comments/{id} Update an existing comment in a topic #
DELETE /topics/{topicId}/comments/{id} Delete a comment in a topic #
PUT /topics/{topicId}/comments/{id}/upvote Upvote a particular comment in a topic #
PUT /topics/{topicId}/comments/{id}/downvote Downvote a particular comment in a topic #
PUT /topics/{topicId}/comments/{id}/flag Flag a comment in a topic #
PUT /topics/{topicId}/comments/{id}/flagged Flag a comment in a topic by API Administrator #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/web-methods:web-methods-comment-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

web-methods-comment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Web Methods Comment API
  version: '10.11'
  description: 'Operations tagged Comment across 2 of this provider''s published API definitions: devportal-comment.yaml, web-methods-developer-portal-comment-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:18101/portal/rest/v1
  description: Development server
tags:
- name: Comment
paths:
  /topics/{id}/comments:
    parameters:
    - name: id
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Comment
      summary: Get the list of comments in a topic
      parameters:
      - name: page
        in: query
        description: Optional parameter. Defines the page number to be retrieved for the collection. If not specified default value 0 is assumed. By default collection responses are paginated with batches of 10.
        required: false
        schema:
          type: integer
          default: 0
      - name: limit
        in: query
        description: Optional parameter. Defines the number of results to be fetched for the current page. If not specified default value configured in system settings will be considered.
        required: false
        schema:
          type: integer
      description: 'Endpoint to retrieve the list of comments in a topic.


        *Endpoint can be accessed only by a user having permission to **READ** topic*'
      responses:
        '200':
          $ref: '#/components/responses/SearchResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsByIdComments
      x-operation-id-source: derived
    post:
      tags:
      - Comment
      summary: Create a comment in a topic
      description: 'Endpoint to post a comment under the topic.


        *Endpoint can be accessed only by a user having permission to **CREATE** topic*'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentCreation'
            examples:
              Comment:
                $ref: '#/components/examples/CommentCreation'
      responses:
        '201':
          $ref: '#/components/responses/CreationResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      operationId: postTopicsByIdComments
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{topicId}/comments/{id}:
    parameters:
    - name: id
      in: path
      description: Unique identification for comment. Refers to the GUID for the comment. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    - name: topicId
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Comment
      summary: Get details of a paricular comment in a topic
      description: 'Endpoint to retrieve the particular comment in a particular topic.


        *Endpoint can be accessed only by a user having permission to **READ** topic*'
      responses:
        '200':
          $ref: '#/components/responses/CommentResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getTopicsByTopicIdCommentsById
      x-operation-id-source: derived
    put:
      tags:
      - Comment
      summary: Update an existing comment in a topic
      description: 'Endpoint to update the particular comment in a particular topic.


        *Endpoint can be accessed only by a user having permission to **CREATE** topic*'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentCreation'
            examples:
              Comment:
                $ref: '#/components/examples/CommentCreation'
      responses:
        '200':
          $ref: '#/components/responses/UpdatedResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByTopicIdCommentsById
      x-operation-id-source: derived
    delete:
      tags:
      - Comment
      summary: Delete a comment in a topic
      description: 'Endpoint to delete the particular comment in a particular topic.


        *Endpoint can be accessed only by a user having permission to **CREATE** topic*'
      responses:
        '204':
          description: The response when the comment is successfully deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: deleteTopicsByTopicIdCommentsById
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{topicId}/comments/{id}/upvote:
    parameters:
    - name: id
      in: path
      required: true
      description: Unique identification for comment. Refers to the GUID for the comment. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    - name: topicId
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Comment
      summary: Upvote a particular comment in a topic
      description: 'Endpoint to upvote the particular comment in a particular topic. Re-invoking the same endpoint will undo the upvote


        *Endpoint can be accessed only by a user having permission to **READ** topic*'
      responses:
        '200':
          $ref: '#/components/responses/UpvoteResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByTopicIdCommentsByIdUpvote
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{topicId}/comments/{id}/downvote:
    parameters:
    - name: id
      in: path
      description: Unique identification for comment. Refers to the GUID for the comment. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    - name: topicId
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Comment
      summary: Downvote a particular comment in a topic
      description: 'Endpoint to downvote the particular comment in a particular topic. Re-invoking the same endpoint will undo the downvote


        *Endpoint can be accessed only by a user having permission to **READ** topic*'
      responses:
        '200':
          $ref: '#/components/responses/DownVoteResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByTopicIdCommentsByIdDownvote
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{topicId}/comments/{id}/flag:
    parameters:
    - name: id
      in: path
      description: Unique identification for comment. Refers to the GUID for the comment. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    - name: topicId
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Comment
      summary: Flag a comment in a topic
      description: 'Endpoint to flag the particular comment in a particular topic. Re-invoking the same endpoint will undo the flag


        *Endpoint can be accessed only by a user having permission to **READ** topic*'
      responses:
        '200':
          $ref: '#/components/responses/FlagResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByTopicIdCommentsByIdFlag
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /topics/{topicId}/comments/{id}/flagged:
    parameters:
    - name: id
      in: path
      description: Unique identification for comment. Refers to the GUID for the comment. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    - name: topicId
      in: path
      description: Unique identification for topic. Refers to the GUID for the topic. For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      required: true
      allowEmptyValue: false
      schema:
        type: string
        format: uuid
    put:
      tags:
      - Comment
      summary: Flag a comment in a topic by API Administrator
      responses:
        '200':
          $ref: '#/components/responses/FlaggedResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: putTopicsByTopicIdCommentsByIdFlagged
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
components:
  responses:
    NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            404_Topic:
              $ref: '#/components/examples/404_Topic'
            404_Comment:
              $ref: '#/components/examples/404_Comment'
    UpdatedResponse:
      description: The response when the comment is successfully updated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            UpdationResponse:
              $ref: '#/components/examples/UpdatedResponse'
    UpvoteResponse:
      description: The response when the comment is successfully upvoted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            UpvoteExample:
              $ref: '#/components/examples/UpvoteExample'
            UndoUpvoteExample:
              $ref: '#/components/examples/UndoUpvoteExample'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            401:
              $ref: '#/components/examples/401'
    FlagResponse:
      description: The response when the comment is flagged/un-flagged successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            FlaggedResponse:
              $ref: '#/components/examples/FlagResponse'
            UnflaggedResponse:
              $ref: '#/components/examples/UnFlagResponse'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            403:
              $ref: '#/components/examples/403'
    CreationResponse:
      description: The response when comment is created successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreatedResponse'
          examples:
            CreationResponse:
              $ref: '#/components/examples/CreatedResponse'
    FlaggedResponse:
      description: The response when the comment is flagged by Administrator
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            FlaggedResponse:
              $ref: '#/components/examples/FlagAcceptedResponse'
            AlreadyFlaggedResponse:
              $ref: '#/components/examples/AlreadyFlaggedResponse'
    CommentResponse:
      description: The response when the requested comment is successfully retrived
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Comment'
          examples:
            CommentResponse:
              $ref: '#/components/examples/Comment'
    DownVoteResponse:
      description: The response when the comment is successfully downvoted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdatedResponse'
          examples:
            DownVoteExample:
              $ref: '#/components/examples/DownVoteExample'
            UndoDownvoteExample:
              $ref: '#/components/examples/UndoDownVoteExample'
    SearchResponse:
      description: List of comments in a topic
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SearchResponse'
          examples:
            CommentList:
              $ref: '#/components/examples/SearchResponseComment'
  examples:
    UndoDownVoteExample:
      value:
        code: 200
        message: Undo downvote successful
    FlagAcceptedResponse:
      value:
        code: 400
        message: Flagged successfully
    404_Comment:
      value:
        code: 404
        message: Unable to find the comment with id [74733475-a879-4693-b94f-22c9c946d433]
    404_Topic:
      value:
        code: 404
        message: Unable to find the topic with id [74733475-a879-4693-b94f-22c9c946d433]
    UndoUpvoteExample:
      value:
        code: 200
        message: Undo Upvote successful
    SearchResponseComment:
      value:
        result:
        - owner: 200ceb26-807d-3bf9-9fd6-f4f0d1ca54d4
          id: 5efd843c-4ce5-493a-9749-c4cce0931888
          modified: 1616649645858
          created: 1616649645858
          flagged: false
          upvotes:
          - 1d4a465a-3b9a-3b0e-b14d-ae3d08c3b1d9
          topicId: 0bf86cac-5caa-4089-b9c6-48f7043e3ba1
          person:
            id: 1d4a465a-3b9a-3b0e-b14d-ae3d08c3b1d9
            email: testgmail.com
          content:
            value: sample comment
            type: rich
        count: 1
        _links:
          _self: /rest/v1/topics/0bf86cac-5caa-4089-b9c6-48f7043e3ba1/comments?page=0
    FlagResponse:
      value:
        code: 200
        message: Raised flag successfully
    CreatedResponse:
      value:
        id: 4ba06f7c-f4dd-4868-9d97-27134e102d00
        _self: /rest/v1/topics/5efd843c-4ce5-493a-9749-c4cce0931888/comments/7c59d3cc-3f14-4d65-aa89-47252a7dc377
    UpvoteExample:
      value:
        code: 200
        message: Upvoted successfully
    AlreadyFlaggedResponse:
      value:
        code: 400
        message: Given entity is already flagged
    UpdatedResponse:
      value:
        code: 200
        message: Comment is updated successfully
    UnFlagResponse:
      value:
        code: 200
        message: Unflag successful
    Comment:
      value:
        owner: 200ceb26-807d-3bf9-9fd6-f4f0d1ca54d4
        id: 7c59d3cc-3f14-4d65-aa89-47252a7dc377
        flagged: false
        modified: 1616649645858
        created: 1616649645858
        upvotes:
        - 1d4a465a-3b9a-3b0e-b14d-ae3d08c3b1d9
        topicId: 0bf86cac-5caa-4089-b9c6-48f7043e3ba1
        content:
          value: sample comment
          type: rich
    DownVoteExample:
      value:
        code: 200
        message: Downvoted successfully
    CommentCreation:
      value:
        content:
          value: My comment
          type: rich
    '401':
      value:
        code: 401
        message: Invalid credentials
    '403':
      value:
        code: 403
        message: Insufficient privileges
  schemas:
    CreatedResponse:
      type: object
      properties:
        id:
          description: Identifier of newly created comment
          type: string
        _self:
          description: Self reference of newly created comment
          type: string
    Comment:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of a comment
        topicId:
          type: string
          description: Identifier of a topic
        content:
          description: Content of the comment
          type: object
          properties:
            type:
              description: Type of comment
              type: string
              enum:
              - link
              - simple
              - rich
            value:
              description: Comment text
              type: string
        upvotes:
          description: List of users upvoted the comment
          type: array
          items:
            type: string
        downvotes:
          description: List of users downvoted the comment
          type: array
          items:
            type: string
        flags:
          description: List of users who flagged the comment
          type: array
          items:
            type: string
        flagged:
          description: Whether given comment is flagged
          type: boolean
        owner:
          description: Owner id of the comment
          type: string
        created:
          type: string
          description: Comment creation time
        modified:
          type: string
          description: Comment modified time
    CommentDTO:
      allOf:
      - $ref: '#/components/schemas/Comment'
      - type: object
        properties:
          person:
            type: object
            properties:
              id:
                type: string
                description: Owner of the comment
              firstName:
                type: string
                description: First name of the owner
              lastName:
                type: string
                description: Last name of the owner
              pictureUrl:
                type: string
                description: Profile pic url of the owner
              email:
                type: string
                description: Email of the comment owner
    CommentCreation:
      type: object
      properties:
        topicId:
          description: GUID of topic in which comment need to be posted
          type: string
        content:
          type: object
          properties:
            type:
              description: Type of the comment
              enum:
              - simple
              - rich
              - link
              type: string
            value:
              type: string
            metaData:
              type: object
              description: If comment type is link then the metadata about the link need to be shared
              properties:
                title:
                  type: string
                description:
                  type: string
                image:
                  type: string
    Error:
      type: object
      properties:
        code:
          type: integer
          description: Response code
        message:
          type: string
          description: Response message
    SearchResponse:
      type: object
      required:
      - result
      - count
      properties:
        result:
          type: array
          items:
            $ref: '#/components/schemas/CommentDTO'
        count:
          description: Total number of comments retrieved
          type: integer
        _links:
          type: object
          description: Links of current and next page
          required:
          - _self
          properties:
            _self:
              type: string
              description: Link of current page
            _next:
              type: string
              description: Link of next page
    UpdatedResponse:
      type: object
      properties:
        code:
          description: Response code
          type: integer
        message:
          description: Response message
          type: string
x-refined-from:
- devportal-comment.yaml
- web-methods-developer-portal-comment-openapi.yml