Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NestedModelWebService<T, U>

Type parameters

  • T: BaseModel

  • U: BaseModelSchema

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected http

http: Http

Protected options

Methods

Abstract create

  • create(parentId: string, schema: U): Promise<T>
  • Parameters

    • parentId: string
    • schema: U

    Returns Promise<T>

Abstract delete

  • delete(parentId: string, ownId: string): Promise<boolean>
  • Parameters

    • parentId: string
    • ownId: string

    Returns Promise<boolean>

Abstract findAll

  • findAll(parentId: string, pagination?: Pagination): Promise<PaginatedArray<T>>
  • Parameters

    • parentId: string
    • Optional pagination: Pagination

    Returns Promise<PaginatedArray<T>>

Abstract findOne

  • findOne(parentId: string, ownId: string): Promise<T>
  • Parameters

    • parentId: string
    • ownId: string

    Returns Promise<T>

Abstract update

  • update(parentId: string, ownId: string, schema: Partial<U>): Promise<T>
  • Parameters

    • parentId: string
    • ownId: string
    • schema: Partial<U>

    Returns Promise<T>

Generated using TypeDoc