diff options
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r-- | src/main/thrift/bwlp.thrift | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 41e17da..0f003b4 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -49,6 +49,11 @@ enum NetDirection { OUT } +enum Role { + STUDENT, + TUTOR +} + // ############## STRUCT ############### struct UserInfo { @@ -56,7 +61,8 @@ struct UserInfo { 2: string firstName, 3: string lastName, 4: string eMail, - 5: string organizationId + 5: string organizationId, + 6: optional Role role, } struct Organization { @@ -342,6 +348,9 @@ service SatelliteServer { // Query detailed information about an image ImageDetailsRead getImageDetails(1: Token userToken, 2: UUID imageBaseId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound), + // Create a new image; the image will have no versions, so the user needs to upload one and set meta data later on + bool createImage(1: Token userToken, 2: string imageName) + throws (1:TAuthorizationException authError), // Update given image's base meta data bool updateImageBase(1: Token userToken, 2: UUID imageBaseId 3: ImageBaseWrite image) throws (1:TAuthorizationException authError), |