Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PostClient

Index

Constructors

Properties

client: HttpClient

Methods

  • get(postId: number, params?: { formatDisabled: boolean; sourceDisabled: boolean }): Promise<Response<PostDetail>>
  • Parameters

    • postId: number
    • Optional params: { formatDisabled: boolean; sourceDisabled: boolean }
      • formatDisabled: boolean
      • sourceDisabled: boolean

    Returns Promise<Response<PostDetail>>

  • getBySlug(slug: string, params: { formatDisabled: boolean; sourceDisabled: boolean }): Promise<Response<PostDetail>>
  • Parameters

    • slug: string
    • params: { formatDisabled: boolean; sourceDisabled: boolean }
      • formatDisabled: boolean
      • sourceDisabled: boolean

    Returns Promise<Response<PostDetail>>

  • Parameters

    • postId: number

    Returns Promise<Response<PostDetail>>

  • Parameters

    • postId: number

    Returns Promise<Response<PostDetail>>

  • like(postId: number): Promise<void>
  • Parameters

    • postId: number

    Returns Promise<void>

  • Parameters

    • params: PageQuery
    • Optional keyword: string
    • Optional categoryId: number

    Returns Promise<Page<PostList>>

  • Parameters

    Returns Promise<Page<BasePostSimple>>

Generated using TypeDoc