# @table defines a database table
# @primaryKey marks the id field
# @export makes this table a REST API at /Dog/
type Dog @table @export {
id: ID @primaryKey # unique record id
name: String # dog's name
breed: String # breed type
age: Int # dog’s age in years
tricks: [String] # list of tricks
Test Endpoint
# ── add a record ───────────────────────────────
curl -X POST http://localhost:9926/Dog/ \ -H "Content-Type: application/json" \
-d '{"name":"Harper","breed":"Labrador","age":3,"tricks":["sits"]}'
# ── view that record ───────────────────────────
curl http://localhost:9926/Dog/<id>
1. Push your app to GitHub, then deploy from Fabric in just a few clicks. 2. Commit your code to a public or private Git repository. 3. In Fabric, go to Applications → Import Application. 4. Enter your repo URL (public HTTPS or SSH).Optionally include a version tag for deployment control: