Skip to content

Commit

Permalink
Decouple screens from apps
Browse files Browse the repository at this point in the history
  • Loading branch information
shayfrendt committed Aug 20, 2024
1 parent 037cd30 commit fe67c12
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 13 deletions.
4 changes: 2 additions & 2 deletions api-reference/v2/components/create-component.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Create Component
openapi: post /app/{appID}/screens/{screenID}/components
openapi: post /screens/{screenID}/components
---

Creates a Component for a Screen in an App.
Creates a Component for a Screen.
2 changes: 1 addition & 1 deletion api-reference/v2/components/get-component.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Get Component
openapi: get /app/{appID}/screens/{screenID}/component/{componentID}
openapi: get /screens/{screenID}/component/{componentID}
---

Retrieves a Component object.
4 changes: 2 additions & 2 deletions api-reference/v2/components/list-components.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: List Components
openapi: get /apps/{appID}/screens/{screenID}/components
openapi: get /screens/{screenID}/components
---

Returns a list of the Components belonging to a Screen in an App.
Returns a list of the Components belonging to a Screen.
4 changes: 2 additions & 2 deletions api-reference/v2/components/update-component.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Update Component
openapi: put /app/{appID}/screens/{screenID}/components/{componentID}
openapi: put /screens/{screenID}/components/{componentID}
---

Update a Component for a Screen in an App.
Update a Component for a Screen.
26 changes: 26 additions & 0 deletions api-reference/v2/computations/create-computation.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Create Computation
openapi: post /computations
---

Create a new computation.

```json
"schema": {
"columns": [
{
"id": "invoiceDate",
"displayName": "Invoice Date",
"type": {
"kind": "computation",
"id": "abc123"
}
},
{
"id": "totalAmount",
"displayName": "Total",
"type": "number"
},
]
},
```
4 changes: 2 additions & 2 deletions api-reference/v2/screens/create-screen.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Create Screen
openapi: post /app/{appID}/screens
openapi: post /screens
---

Create a new Screen for an App.
Create a new Screen.
4 changes: 2 additions & 2 deletions api-reference/v2/screens/list-screens.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: List Screens
openapi: get /apps/{appID}/screens
openapi: get /screens
---

Returns a list of the Screens belonging to an App.
Returns a list of the Screens.
4 changes: 2 additions & 2 deletions api-reference/v2/workflows/get-workflows.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: List Workflows
openapi: get /apps/{appID}/workflows
openapi: get /workflows
---

Get a list of all Workflows associated with an App.
Get a list of all Workflows.
6 changes: 6 additions & 0 deletions mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
"api-reference/v2/components/update-component"
]
},
{
"group": "Computations",
"pages": [
"api-reference/v2/computations/create-computation"
]
},
{
"group": "Screens",
"pages": [
Expand Down

0 comments on commit fe67c12

Please sign in to comment.