تمت ترجمة هذه الوثائق تلقائيًا بواسطة الذكاء الاصطناعي.
APIClient هو غلاف مبني على axios، يُستخدم لطلب عمليات موارد NocoBase من جانب العميل عبر HTTP.
axiosكائن axios، والذي يمكن استخدامه للوصول إلى واجهة برمجة تطبيقات axios، على سبيل المثال، apiClient.axios.interceptors.
authفئة المصادقة من جانب العميل، راجع Auth.
storageفئة التخزين من جانب العميل، راجع Storage.
constructor()دالة البناء، تنشئ كائن APIClient.
constructor(instance?: APIClientOptions)request()تُطلق طلب HTTP.
request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D> | ResourceActionOptions): Promise<R>معلمات طلب axios العامة. راجع Request Config.
معلمات طلب عمليات موارد NocoBase.
| الخاصية | النوع | الوصف ```
Gets the NocoBase resource action method object.
resource(name: string, of?: any, headers?: AxiosRequestHeaders): IResource| Parameter | Type | Description |
|---|---|---|
name | string | 1. Resource name, e.g., a2. Name of the resource's associated object, e.g., a.b |
of | any | When name is the name of the resource's associated object, it is the primary key value of the resource. For example, for a.b, it represents the primary key value of a. |
headers | AxiosRequestHeaders | HTTP headers to include in subsequent resource action requests. |