Browse Source

test: draft (WIP)

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5901/head
Raju Udava 2 years ago
parent
commit
8be59747e5
  1. 82
      packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts

82
packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts

@ -0,0 +1,82 @@
/**
* Records List
* - default
* - pageSize
* - limit
* - offset
* - fields, single
* - fields, multiple
* - sort, ascending
* - sort, descending
* - sort, multiple
* - filter, single
* - filter, multiple
* - field type : number based (number, currency, percent, decimal, rating, duration)
* - field type : text based (text, longtext, email, phone, url)
* - field type : select based (single select, multi select)
* - field type : date based (date, datetime, time)
* - field type : virtual (link, lookup, rollup, formula)
* - field type : misc (checkbox, attachment, barcode, qrcode, json)
* - viewID
* - viewID, explicit fields
* - viewID, explicit sort
* - viewID, explicit filter
* # Error handling
* - invalid table ID
* - invalid view ID
* - invalid field name
* - invalid sort condition
* - invalid filter condition
* - invalid pageSize
* - invalid limit
* - invalid offset
*
*
* Records Create
* - field type : number based (number, currency, percent, decimal, rating, duration)
* - field type : text based (text, longtext, email, phone, url)
* - field type : select based (single select, multi select)
* - field type : date based (date, datetime, time)
* - field type : virtual (link)
* - field type : misc (checkbox, attachment, barcode, qrcode, json)
* - bulk insert
* - bulk insert-all
* # Error handling
* - invalid table ID
* - invalid field type
* - invalid field value (when validation enabled : email, url, phone number, rating, select fields, text fields, number fields, date fields)
* - invalid payload size
*
*
* Record read
* - field type : number based (number, currency, percent, decimal, rating, duration)
* - field type : text based (text, longtext, email, phone, url)
* - field type : select based (single select, multi select)
* - field type : date based (date, datetime, time)
* - field type : virtual (link, lookup, rollup, formula)
* - field type : misc (checkbox, attachment, barcode, qrcode, json)
* # Error handling
* - invalid table ID
* - invalid record ID
*
*
* Record update
* - field type : number based (number, currency, percent, decimal, rating, duration)
* - field type : text based (text, longtext, email, phone, url)
* - field type : select based (single select, multi select)
* - field type : date based (date, datetime, time)
* - field type : virtual (link)
* - field type : misc (checkbox, attachment, barcode, qrcode, json)
* - bulk update
* - bulk update-all
* # Error handling
* - invalid table ID
* - invalid record ID
*
* Record delete
* - default
* - bulk delete
* # Error handling
* - invalid table ID
* - invalid record ID
*/
Loading…
Cancel
Save