Portal
A Portal is the signed-in part of a Site where each Customer orders, tracks delivery, accepts work, and pays, seeing only their own records.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
path | string | required | Where it is mounted on the Site, / by default. |
tools | string[] | Developer tools a keyed Offer adds: keys, usage, requests, watches, version and testMode. |
Object
{
"$id": "https: //api.sb/ tutorloop.com/ portals/ portal_1",
"$type": "Portal",
"path": "/",
"tools": [
"keys"
]
}Relationships
- A Portal is included in one Site: a Site includes one Portal, the signed-in part where each Customer sees only their own records.
includedIn, inverseincludes. - A Portal serves many Customers: Customers sign in to a Portal to order, track delivery, accept work, and pay.
serves, inversesignsInto.
Verbs
createCreates a Portal.POST /{namespace}/portalsgetReturns one Portal by id.GET /{namespace}/portals/{id}listReturns Portals, newest first, one page at a time.GET /{namespace}/portalsupdateChanges the given properties of a Portal.PATCH /{namespace}/portals/{id}deleteDeletes a Portal; its history is kept.DELETE /{namespace}/portals/{id}
Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.
| Operation | owner | admin | member | viewer |
|---|---|---|---|---|
Portal.create | Yes | Yes | Yes | No |
Portal.get | Yes | Yes | Yes | Yes |
Portal.list | Yes | Yes | Yes | Yes |
Portal.update | Yes | Yes | Yes | No |
Portal.delete | Yes | Yes | Yes | No |
Call it
Add a portal to QuietCopy.Example
A client of a bookkeeping service signs in at /portal, accepts last month's close, uploads two receipts, and pays the Invoice. She sees only her own records.