API v2
Last updated
Was this helpful?
Last updated
Was this helpful?
We need good REST API for Voedger
Old API must still be available until the new one is fully developed, so we can continue with AIR
Authentication
POST /api/v2/apps/{owner}/{app}/auth/login
POST /api/v2/apps/{owner}/{app}/auth/refresh
Logins
POST /api/v2/apps/{owner}/{app}/users
POST /api/v2/apps/{owner}/{app}/users/change-password
Devices
POST /api/v2/apps/{owner}/{app}/devices
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/commands/sys.JoinDevice
Docs and records
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}
PATCH /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}/{id}
DELETE /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}/{id}
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}/{id}
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/cdocs/{pkg}.{table}
BLOBs
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}/blobs/{fieldName}
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}/{id}/blobs/{fieldName}
Temporary BLOBs
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/tblobs
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/tblobs/{suuid}
Extensions
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/commands/{pkg}.{command}
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/queries/{pkg}.{query}
Views
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/views/{pkg}.{view}
Notifications
Create channel, subscribe and start watching
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/n10n
Update channel subscriptions and continue watching
PATCH /api/v2/apps/{owner}/{app}/workspaces/{wsid}/n10n/{channelId}
Unsubscribe from notifications channel
DELETE /api/v2/apps/{owner}/{app}/workspaces/{wsid}/n10n/{channelId}
Schemas
GET /api/v2/apps/{owner}/{app}/schemas
GET /api/v2/apps/{owner}/{app}/schemas/{pkg}.{workspace}/roles
GET /api/v2/apps/{owner}/{app}/schemas/{pkg}.{workspace}/roles/{pkg}.{role}
The following functions should not be calle directly:
c.sys.CUD
q.sys.Collection