Skip to content

Commit

Permalink
Merge pull request #49 from virtualidentityag/develop
Browse files Browse the repository at this point in the history
tsys release
  • Loading branch information
tkuzynow authored Nov 9, 2023
2 parents 365c893 + 7d84f52 commit b934c7f
Show file tree
Hide file tree
Showing 130 changed files with 3,194 additions and 1,123 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
/.nb-gradle/
wrapper
log
/src/main/resources/application-local.properties
137 changes: 135 additions & 2 deletions api/videoservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ paths:
content:
'application/json':
schema:
$ref: '#/components/schemas/CreateVideoCallResponseDTO'
$ref: '#/components/schemas/VideoCallResponseDTO'
400:
description: BAD REQUEST - invalid/incomplete request or body object
401:
Expand All @@ -44,6 +44,95 @@ paths:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]
/videocalls/join/{roomId}:
post:
tags:
- video-controller
summary: 'Join an existing new video call room Id [Authorization: Role: consultant]'
operationId: joinGroupVideoCall
parameters:
- name: roomId
in: path
required: true
schema:
type: string
format: uuid
responses:
200:
description: JOINED - joined successfully to a video call room
content:
'application/json':
schema:
$ref: '#/components/schemas/VideoCallResponseDTO'
400:
description: BAD REQUEST - invalid/incomplete request or body object
401:
description: UNAUTHORIZED - no/invalid Keycloak token
403:
description: 'FORBIDDEN - no/invalid role/authorization, CSRF token or consultant without
permission for given session'
404:
description: NOT FOUND - Room not found
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]

/videocalls/stop/{roomId}:
post:
tags:
- video-controller
summary: 'Stops a video call [Auth: consultant]'
description: 'This is basically for stats.'
operationId: stopVideoCall
parameters:
- name: roomId
in: path
required: true
schema:
type: string
format: uuid
responses:
204:
description: NO CONTENT
400:
description: BAD REQUEST - invalid/incomplete request or body object
401:
description: UNAUTHORIZED - no/invalid Keycloak token
403:
description: FORBIDDEN - no/invalid CSRF token
404:
description: NOT FOUND - room ID unknown
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition

/videocalls/event/stop/{roomId}:
post:
tags:
- video-controller
summary: 'Stops a video call [Auth: jitsi-technical]'
description: 'Handles video call stop event fired by Jitsi (Machine2Machine).'
operationId: handleVideoCallStoppedEvent
parameters:
- name: roomId
in: path
required: true
schema:
type: string
responses:
204:
description: NO CONTENT
400:
description: BAD REQUEST - invalid/incomplete request or body object
401:
description: UNAUTHORIZED - no/invalid Keycloak token
403:
description: FORBIDDEN - access denied
404:
description: NOT FOUND - room ID unknown
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition

/videocalls/reject:
post:
tags:
Expand All @@ -69,6 +158,7 @@ paths:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]

/videocalls/{roomId}/jwt:
get:
tags:
Expand Down Expand Up @@ -99,6 +189,32 @@ paths:
description: NOT FOUND - rcGroupId unknown
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
/videocalls/room/{jitsiRoomId}:
post:
tags:
- video-controller
summary: 'Creates a new room [Authorization: Role: jitsi-technical]'
operationId: createRoom
parameters:
- name: jitsiRoomId
in: path
required: true
schema:
type: long
responses:
200:
description: OK - successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/VideoRoomResponseDTO'
400:
description: BAD REQUEST - invalid/incomplete request or body object
401:
description: UNAUTHORIZED - no/invalid Keycloak token
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition


components:
schemas:
Expand All @@ -110,9 +226,12 @@ components:
sessionId:
type: integer
format: int64
groupChatId:
type: integer
format: int64
initiatorDisplayName:
type: string
CreateVideoCallResponseDTO:
VideoCallResponseDTO:
type: object
required:
- moderatorVideoCallUrl
Expand Down Expand Up @@ -148,6 +267,20 @@ components:
jwt:
type: string

VideoRoomResponseDTO:
type: object
properties:
jitsiRoomId:
type: long
example: 12132
videoLink:
type: string
example: 12132
createDate:
type: string
updateDate:
type: string

securitySchemes:
Bearer:
type: apiKey
Expand Down
24 changes: 13 additions & 11 deletions google_checks_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,13 @@
<message key="name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<!--
<module name="MemberName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
-->
<module name="ParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
Expand Down Expand Up @@ -226,14 +228,14 @@
<message key="ws.notPreceded"
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
<module name="Indentation">
<property name="basicOffset" value="2"/>
<property name="braceAdjustment" value="0"/>
<property name="caseIndent" value="2"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="2"/>
</module>
<!-- <module name="Indentation">-->
<!-- <property name="basicOffset" value="2"/>-->
<!-- <property name="braceAdjustment" value="0"/>-->
<!-- <property name="caseIndent" value="2"/>-->
<!-- <property name="throwsIndent" value="4"/>-->
<!-- <property name="lineWrappingIndentation" value="4"/>-->
<!-- <property name="arrayInitIndent" value="2"/>-->
<!-- </module>-->
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
<property name="allowedAbbreviationLength" value="1"/>
Expand Down Expand Up @@ -283,7 +285,6 @@
<property name="tokens" value="VARIABLE_DEF"/>
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>

<!--
<module name="NonEmptyAtclauseDescription"/>
<module name="InvalidJavadocPosition"/>
Expand All @@ -299,18 +300,18 @@
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
-->

<module name="JavadocMethod">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF"/>
</module>
<!--
<module name="MissingJavadocMethod">
<property name="scope" value="public"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test, Before"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF"/>
</module>
<module name="MethodName">
Expand All @@ -321,6 +322,7 @@
<module name="SingleLineJavadoc">
<property name="ignoreInlineTags" value="false"/>
</module>
-->
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected"/>
</module>
Expand Down
Loading

0 comments on commit b934c7f

Please sign in to comment.