Skip to main content

@webda/coreReadme | API


Type alias: StoreExposeParameters

StoreExposeParameters: Object

Deprecated

Store should not be exposed directly anymore You should use the DomainService instead

Type declaration

queryMethod?

queryMethod?: "PUT" | "GET"

For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging

Default

"GET"

restrict?

restrict?: Object

You can restrict any part of the CRUD

Default

{}

restrict.create?

restrict.create?: boolean

Do not expose the POST

restrict.delete?

restrict.delete?: boolean

Do not expose the DELETE

restrict.get?

restrict.get?: boolean

Do not expose the GET

restrict.query?

restrict.query?: boolean

Do not expose the query endpoint

restrict.update?

restrict.update?: boolean

Do not expose the PUT and PATCH

url?

url?: string

URL endpoint to use to expose REST Resources API

Default

service.getName().toLowerCase()

Source

packages/core/src/stores/store.ts:321