Skip to content

Commit bffa799

Browse files
Cathy0123456789github-actions[bot]az108
authored
Development: Add basic reference letter request functionality (#2489)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: aniruddhzaveri <aniruddh.zaveri@tum.de>
1 parent ff9de5f commit bffa799

70 files changed

Lines changed: 2166 additions & 1757 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

openapi/openapi.yaml

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,57 @@ paths:
657657
content:
658658
application/json:
659659
schema: {$ref: '#/components/schemas/RatingOverviewDTO'}
660+
/api/applications/{applicationId}/references:
661+
get:
662+
tags: [reference-request-resource]
663+
operationId: getReferences
664+
parameters:
665+
- name: applicationId
666+
in: path
667+
required: true
668+
schema: {type: string, format: uuid}
669+
responses:
670+
'200':
671+
description: OK
672+
content:
673+
application/json:
674+
schema:
675+
type: array
676+
items: {$ref: '#/components/schemas/ReferenceRequestDTO'}
677+
post:
678+
tags: [reference-request-resource]
679+
operationId: add
680+
parameters:
681+
- name: applicationId
682+
in: path
683+
required: true
684+
schema: {type: string, format: uuid}
685+
requestBody:
686+
content:
687+
application/json:
688+
schema: {$ref: '#/components/schemas/CreateReferenceRequestDTO'}
689+
required: true
690+
responses:
691+
'200':
692+
description: OK
693+
content:
694+
application/json:
695+
schema: {$ref: '#/components/schemas/ReferenceRequestDTO'}
696+
/api/applications/{applicationId}/references/{referenceId}:
697+
delete:
698+
tags: [reference-request-resource]
699+
operationId: remove
700+
parameters:
701+
- name: applicationId
702+
in: path
703+
required: true
704+
schema: {type: string, format: uuid}
705+
- name: referenceId
706+
in: path
707+
required: true
708+
schema: {type: string, format: uuid}
709+
responses:
710+
'200': {description: OK}
660711
/api/auth/login:
661712
post:
662713
tags: [authentication-resource]
@@ -2909,6 +2960,14 @@ components:
29092960
expected: {type: integer, format: int32}
29102961
exported: {type: integer, format: int32}
29112962
failed: {type: integer, format: int32}
2963+
CreateReferenceRequestDTO:
2964+
type: object
2965+
properties:
2966+
email: {type: string, format: email, maxLength: 320, minLength: 0}
2967+
firstName: {type: string, maxLength: 255, minLength: 0}
2968+
lastName: {type: string, maxLength: 255, minLength: 0}
2969+
title: {type: string, maxLength: 32, minLength: 0}
2970+
required: [email, firstName, lastName]
29122971
CreateSlotsDTO:
29132972
type: object
29142973
properties:
@@ -3005,7 +3064,7 @@ components:
30053064
INTERVIEW_BOOKED_APPLICANT, INTERVIEW_BOOKED_PROFESSOR, INTERVIEW_ASSIGNED_PROFESSOR,
30063065
INTERVIEW_LOCATION_CHANGED, INTERVIEW_SELF_SCHEDULING_INVITATION, INTERVIEW_CANCELLED,
30073066
INTERVIEW_RESCHEDULE_REQUESTED, DATA_EXPORT_READY, USER_DATA_DELETION_WARNING,
3008-
APPLICANT_DATA_DELETION_WARNING]
3067+
APPLICANT_DATA_DELETION_WARNING, REFERENCE_LETTER_INVITATION]
30093068
enabled: {type: boolean}
30103069
EmailTemplateDTO:
30113070
type: object
@@ -3020,7 +3079,7 @@ components:
30203079
INTERVIEW_BOOKED_APPLICANT, INTERVIEW_BOOKED_PROFESSOR, INTERVIEW_ASSIGNED_PROFESSOR,
30213080
INTERVIEW_LOCATION_CHANGED, INTERVIEW_SELF_SCHEDULING_INVITATION, INTERVIEW_CANCELLED,
30223081
INTERVIEW_RESCHEDULE_REQUESTED, DATA_EXPORT_READY, USER_DATA_DELETION_WARNING,
3023-
APPLICANT_DATA_DELETION_WARNING]
3082+
APPLICANT_DATA_DELETION_WARNING, REFERENCE_LETTER_INVITATION]
30243083
english: {$ref: '#/components/schemas/EmailTemplateTranslationDTO'}
30253084
german: {$ref: '#/components/schemas/EmailTemplateTranslationDTO'}
30263085
EmailTemplateOverviewDTO:
@@ -3036,7 +3095,7 @@ components:
30363095
INTERVIEW_BOOKED_APPLICANT, INTERVIEW_BOOKED_PROFESSOR, INTERVIEW_ASSIGNED_PROFESSOR,
30373096
INTERVIEW_LOCATION_CHANGED, INTERVIEW_SELF_SCHEDULING_INVITATION, INTERVIEW_CANCELLED,
30383097
INTERVIEW_RESCHEDULE_REQUESTED, DATA_EXPORT_READY, USER_DATA_DELETION_WARNING,
3039-
APPLICANT_DATA_DELETION_WARNING]
3098+
APPLICANT_DATA_DELETION_WARNING, REFERENCE_LETTER_INVITATION]
30403099
english: {$ref: '#/components/schemas/EmailTemplateTranslationDTO'}
30413100
firstName: {type: string}
30423101
german: {$ref: '#/components/schemas/EmailTemplateTranslationDTO'}
@@ -3210,6 +3269,7 @@ components:
32103269
enum: [GARCHING, GARCHING_HOCHBRUECK, HEILBRONN, MUNICH, STRAUBING, WEIHENSTEPHAN,
32113270
SINGAPORE]
32123271
professorName: {type: string}
3272+
referenceLettersRequired: {type: integer, format: int32}
32133273
relativeTimeEnglish: {type: string}
32143274
relativeTimeGerman: {type: string}
32153275
startDate: {type: string, format: date}
@@ -3304,6 +3364,7 @@ components:
33043364
type: string
33053365
enum: [GARCHING, GARCHING_HOCHBRUECK, HEILBRONN, MUNICH, STRAUBING, WEIHENSTEPHAN,
33063366
SINGAPORE]
3367+
referenceLettersRequired: {type: integer, format: int32}
33073368
researchArea: {type: string}
33083369
researchGroup: {$ref: '#/components/schemas/ResearchGroupSummaryDTO'}
33093370
startDate: {type: string, format: date}
@@ -3376,6 +3437,7 @@ components:
33763437
type: string
33773438
enum: [GARCHING, GARCHING_HOCHBRUECK, HEILBRONN, MUNICH, STRAUBING, WEIHENSTEPHAN,
33783439
SINGAPORE]
3440+
referenceLettersRequired: {type: integer, format: int32}
33793441
researchArea: {type: string}
33803442
startDate: {type: string, format: date}
33813443
startDateByArrangement: {type: boolean}
@@ -3577,6 +3639,17 @@ components:
35773639
type: array
35783640
items: {$ref: '#/components/schemas/RatingDTO'}
35793641
uniqueItems: true
3642+
ReferenceRequestDTO:
3643+
type: object
3644+
properties:
3645+
email: {type: string}
3646+
firstName: {type: string}
3647+
lastName: {type: string}
3648+
referenceRequestId: {type: string, format: uuid}
3649+
status:
3650+
type: string
3651+
enum: [REQUESTED, SUBMITTED, EXPIRED]
3652+
title: {type: string}
35803653
RejectDTO:
35813654
type: object
35823655
properties:

0 commit comments

Comments
 (0)