feat: add read-only support of the meta API (#13)
* Add bases API. * Implement get tables schema * Rename GetBase to GetBaseSchema * Add tests * Update doc
This commit is contained in:
72
testdata/base_schema.json
vendored
Normal file
72
testdata/base_schema.json
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"tables": [
|
||||
{
|
||||
"description": "Apartments to track.",
|
||||
"fields": [
|
||||
{
|
||||
"description": "Name of the apartment",
|
||||
"id": "fld1VnoyuotSTyxW1",
|
||||
"name": "Name",
|
||||
"type": "singleLineText"
|
||||
},
|
||||
{
|
||||
"id": "fldoaIqdn5szURHpw",
|
||||
"name": "Pictures",
|
||||
"type": "multipleAttachments"
|
||||
},
|
||||
{
|
||||
"id": "fldumZe00w09RYTW6",
|
||||
"name": "District",
|
||||
"options": {
|
||||
"inverseLinkFieldId": "fldWnCJlo2z6ttT8Y",
|
||||
"isReversed": false,
|
||||
"linkedTableId": "tblK6MZHez0ZvBChZ",
|
||||
"prefersSingleRecordLink": true
|
||||
},
|
||||
"type": "multipleRecordLinks"
|
||||
}
|
||||
],
|
||||
"id": "tbltp8DGLhqbUmjK1",
|
||||
"name": "Apartments",
|
||||
"primaryFieldId": "fld1VnoyuotSTyxW1",
|
||||
"views": [
|
||||
{
|
||||
"id": "viwQpsuEDqHFqegkp",
|
||||
"name": "Grid view",
|
||||
"type": "grid"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"id": "fldEVzvQOoULO38yl",
|
||||
"name": "Name",
|
||||
"type": "singleLineText"
|
||||
},
|
||||
{
|
||||
"description": "Apartments that belong to this district",
|
||||
"id": "fldWnCJlo2z6ttT8Y",
|
||||
"name": "Apartments",
|
||||
"options": {
|
||||
"inverseLinkFieldId": "fldumZe00w09RYTW6",
|
||||
"isReversed": false,
|
||||
"linkedTableId": "tbltp8DGLhqbUmjK1",
|
||||
"prefersSingleRecordLink": false
|
||||
},
|
||||
"type": "multipleRecordLinks"
|
||||
}
|
||||
],
|
||||
"id": "tblK6MZHez0ZvBChZ",
|
||||
"name": "Districts",
|
||||
"primaryFieldId": "fldEVzvQOoULO38yl",
|
||||
"views": [
|
||||
{
|
||||
"id": "viwi3KXvrKug2mIBS",
|
||||
"name": "Grid view",
|
||||
"type": "grid"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user