Comments service

Hierarchy

  • CommentsService

Constructors

Properties

httpClient: HttpClient
namespace: string = '/comments/v1'

Methods

  • Create comment

    Parameters

    Returns Promise<AxiosResponse<IComment, any, {}>>

    comment entity

  • Delete comment

    Parameters

    • id: number

      comment id

    • Optional body: Pick<ICreateCommentDto, "mentioned" | "notify" | "root_parent">

      notify params

    Returns Promise<AxiosResponse<any, any, {}>>

  • Get comment

    Parameters

    • id: number

    Returns Promise<AxiosResponse<IComment, any, {}>>

    comment entity

  • pin comments

    Parameters

    • id: number

      comment id

    • pinned: boolean

      comment pinned flag

    Returns Promise<AxiosResponse<any, any, {}>>

    comment entity

  • Read comments

    Parameters

    • commentIds: number[]

    Returns Promise<AxiosResponse<any, any, {}>>

  • Update comment

    Parameters

    Returns Promise<AxiosResponse<IComment, any, {}>>

    comment entity

Generated using TypeDoc