CMS
Sitelerinizin ve uygulamalarınızın okuduğu içerik tabloları.
Bir CMS tablosu, çalışma alanının veritabanında sıradan bir tablodur. Tabloları CMS yöntemleriyle yönetir, kayıtlarını kayıt yöntemleriyle okur ve yazarsınız. Her çağrı, API anahtarınızı taşıyan bir JSON gövdesiyle /cpi/<method> adresine yapılan bir POST'tur.
Yanıt, her tabloyu alanları ve kayıt sayısıyla, ayrıca içinde yaşadığı veritabanıyla (kayıt yöntemlerinin aldığı app_id) birlikte tutar.
Panelden
Her tablonun bir API penceresi vardır: bir kartta ya da açık bir tabloda API ve JSON düğmesine basın. O tablo için beş kayıt çağrısını, tablonun kendi alanlarını JSON olarak, aynı isteği cURL ya da JavaScript olarak ve göndermek için bir yer gösterir. Anahtar seçicisi, çalışma alanına ulaşan anahtarları listeler ve yeni bir tane oluşturabilir. Tam erişimli bir anahtar çalışır. Özel bir anahtar, okumak için dbs_read, yazmak için dbs_create, dbs_update ve dbs_delete gerektirir.
Kayıtlar
Pencerenin beş çağrısı şu yöntemleri çalıştırır. Her biri çalışma alanı veritabanının app_id değerini ve tablonun kimliğini alır.
Kayıt, anahtarları tablonun alan kimlikleri olan bir nesnedir. Birden fazla kaydı bir kerede eklemek için table_data değerini bir dizi olarak gönderin. Silme, kayıtları Arşivlenenler'e taşır ve aynı kimliklerle dbs_restore onları geri getirir. Kalıcı olarak silmek için permanent ekleyin.
DBS Read
Reads records from an app table with optional row range, single-row lookup, sorting, filtering, and archived-record selection.
DBS Create
Creates a new record in the specified app table from the provided key-value table data.
DBS Update
Replaces the data of an existing record, identified by row_id, in the specified app table.
DBS Delete
Soft-deletes (or permanently deletes when 'permanent' is set) the listed record IDs from an app table.
DBS Restore
Restores previously soft-deleted records, identified by their IDs, in the specified app table.
Tablolar
Get CMS Tables
The CMS tables of one workspace, active and archived, each with its fields and how many records it holds, plus the database the records live in (the app_id to hand dbs_read, dbs_create, dbs_update, dbs_delete and dbs_restore), whether that database is ready, and the plan with what it allows. The first open of a workspace other than Main installs the database plugin there and answers preparing until it is ready.
Get CMS Table
One CMS table as Xuda Studio stores it (its fields and indexes), with its record count and the database it lives in.
Save CMS Table
Create a CMS table, or change one when table_id is sent. A table has a name, an optional description and its fields, each a name, a type (string, number, boolean, date, array, object, or relation) and whether it is required. A relation field relates the table to the Contacts module ({ kind: 'module', module: 'contacts' }) or to another CMS table of the workspace ({ kind: 'table', table_id }), holding one id or, with many, several; a saved relation keeps what it relates to and its shape. Field names start with a letter and use letters, digits and underscores. A new table counts against the plan's tables, and every table against its fields per table. The table is an ordinary Xuda Studio table in the workspace's database, so it opens in Studio too.
Archive CMS Table
Archive a CMS table (it leaves the list and its records stay) or bring it back with archived false, which counts against the plan's tables again.
Get CMS Records Of An Item
The CMS tables related to one item of another module (a ticket, a delivery, an order, a product, a finance document or a contact), each with its fields and the records that point at that item, so the item can show them to fill. A workspace with CMS switched off answers no tables.
Yeni bir tablo planınızın tablolarından, her tablo alanlarından, kayıt ekleme ya da geri yükleme ise kayıtlarından sayılır. Bir sınırı aşan çağrı, hangisi olduğunu söyleyen bir mesajla reddedilir.