1 Fetch MockAPI records and display in UI ("Workshop")
← 0 First steps / ↑ 3.3 Foundry QS1 / → 2 Create AIPLF and UI
26.1111 16:21 (converted from docx source file to markdown+PNGs by ChatGPT)
TOC
- 1.0 What we will build
- 1.1 Create MockAPI records
- 1.2 Configure the data connection to MockAPI
- 1.3 Fetch MockAPI records through the data connection and store them in a dataset using Python (837)
- 1.4 Create ObjectTypes/Objects from the dataset (841)
- 1.5 Display ObjectType records in a UI (Workshop) table
1.0 What we will build
Summary. Bring in a few records from MockAPI and display the record text and numbers in a table. No AI.

Configuration (numbered steps in diagram above)
- 1.1 MockAPI — three source records
- 1.2 Connection allowing Foundry to read MockAPI (1.2 is connection configuration, not another set of data records. The import uses that connection to fetch the records.)
- 1.3a PY script for importing to the dataset.
- 1.3b Stored dataset (693_MockAPI_Items).
- 1.4 Create object types (ontology) from the dataset.
- 1.5 UI table displays those objects. UI Column-to-property mappings + automatic indexing (Capstone2Record: three objects)
1.1 Create MockAPI records
Keep only the synthetic records needed for this demo: an ID, text, and an integer.
[
{
"id": "1",
"text": "text1",
"integer": 111
},
{
"id": "2",
"text": "text2",
"integer": 222
},
{
"id": "3",
"text": "text3",
"integer": 333
}
]

1.2 Configure the data connection to MockAPI
Configure the external connection and explain what access we are allowing. Reuse the existing connection if suitable.



1.3 Fetch MockAPI records through the data connection and store them in a dataset using Python (837)
Run a small import manually. Check the returned records and column types. Leave recurring fetches off.

Confirmed: the old import reads name and quantity. We’ll leave it unchanged and create a new import for 693.



Preview.






1.4 Create ObjectTypes/Objects from the dataset (841)
(was “Make the records available as objects”) Yes—“1.4 Create objects from the dataset” is better. It says plainly what the reader will do, rather than describing the outcome indirectly.
Connect the imported columns to an object’s ID, text, and integer properties. Keep this backing-data path throughout the demo.
We’ll create one new object type for 693, backed directly by this dataset—no CSV combination or datasource replacement.
Proposed configuration:
- Object type: Capstone2Record
- ID: id
- Displayed title: text
- Numeric property: integer





Leave all three checkboxes unchecked. We do not need controls to create, modify, or delete records inside Foundry for this first step. Our records will come from MockAPI, and the table will display them. We’ll add a specific result-saving operation later when needed. The who can submit options are disabled because no Actions are selected—that is expected.






Verified: Capstone2Record now has 3 objects, and all three columns are mapped correctly:
- Id ← id — unique identifier
- Text ← text — displayed title
- Integer ← integer — numeric value
There are no generated Actions, and edits are disabled. That is appropriate for our current read-only display.
1.5 Display ObjectType records in a UI (Workshop) table
Create a minimal application with one table. Verify that the displayed values match MockAPI. Chapter 1 ends with: MockAPI records visible in the application—no AI, buttons, result storage, or automation yet.











Publishing makes the application configuration available; it does not fetch MockAPI again.