mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 06:41:51 +01:00
Add API and Server Version
This commit is contained in:
parent
c855646a90
commit
d34c06c48e
@ -11,6 +11,17 @@ using MachineSystem = import "machinesystem.capnp".MachineSystem;
|
||||
using UserSystem = import "usersystem.capnp".UserSystem;
|
||||
using PermissionSystem = import "permissionsystem.capnp".PermissionSystem;
|
||||
|
||||
const api_version_major :Int32 = 0;
|
||||
const api_version_minor :Int32 = 3;
|
||||
const api_version_patch :Int32 = 0;
|
||||
|
||||
struct Version
|
||||
{
|
||||
major @0 :Int32;
|
||||
minor @1 :Int32;
|
||||
patch @2 :Int32;
|
||||
}
|
||||
|
||||
interface Bootstrap
|
||||
{
|
||||
authenticationSystem @0 () -> ( authenticationSystem : AuthenticationSystem );
|
||||
@ -19,5 +30,9 @@ interface Bootstrap
|
||||
|
||||
userSystem @2 () -> ( userSystem : UserSystem );
|
||||
|
||||
permissionSystem @3 () -> ( permissionSystem : PermissionSystem );
|
||||
permissionSystem @3 () -> ( permissionSystem : PermissionSystem );
|
||||
|
||||
getAPIVersion @4 () -> ( version : Version );
|
||||
|
||||
getServerVersion @5 () -> ( version : Version );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user