openapi: 3.0.4 info: title: API v1 description: Noo.Api module version: v1 paths: /assigned-work: get: tags: - AssignedWork summary: Gets the current user's list of assigned works. parameters: - name: Search in: query schema: type: string - name: Type in: query schema: type: array items: $ref: "#/components/schemas/WorkType" - name: Tab in: query description: |- Which slice of the list to return. Not an ordinary property filter: the tab predicate is shared with the tab counters, so it is applied by `AssignedWorkSearchSpecification` instead of being built from this property. schema: $ref: "#/components/schemas/AssignedWorkListTab" - name: MentorId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: StudentId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Title - CreatedAt - SolvedAt - CheckedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/AssignedWorkDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{userId}/metadata: get: tags: - AssignedWork summary: Get metadata of assigned works parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/AssignedWorksMetadataDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{workAssignmentId}: post: tags: - AssignedWork summary: |- Creates an assigned work instance by a work assignment ID. This is used when a student starts working on a work parameters: - name: workAssignmentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/history: get: tags: - AssignedWork summary: Gets the assigned work history entries, paginated parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: AssignedWorkId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - AssignedWorkId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/AssignedWorkHistoryDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}: get: tags: - AssignedWork summary: Gets an assigned work by its ID. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/AssignedWorkDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - AssignedWork summary: Deletes an assigned work. description: |- Only possible if the status of the assigned work is not Solved. Otherwise, it will return a 409 Conflict status code. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{workAssignmentId}/progress: get: tags: - AssignedWork summary: |- Gets the progress of an assigned work by its ID. Used when loading the whole assigned work is not needed. description: |- It returns an array of progress because there can be multiple AssignedWork's as separate attempts for one WorkAssignment. parameters: - name: workAssignmentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/AssignedWorkProgressDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/remake: post: tags: - AssignedWork summary: |- Remakes an assigned work. Returns the ID of the newly created assigned work. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/RemakeAssignedWorkOptionsDTO" text/json: schema: $ref: "#/components/schemas/RemakeAssignedWorkOptionsDTO" application/*+json: schema: $ref: "#/components/schemas/RemakeAssignedWorkOptionsDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/save-answer: post: tags: - AssignedWork summary: |- Saves an Answer to an assigned work. This is used by students to submit their answers to assigned works, or by mentors to save their comments on the assigned work. If the answer already exists, it will be updated. If the answer does not exist, it will be created. description: It will also update the status of the assigned work to "In Progress" if it was not already. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/UpsertAssignedWorkAnswerDTO" text/json: schema: $ref: "#/components/schemas/UpsertAssignedWorkAnswerDTO" application/*+json: schema: $ref: "#/components/schemas/UpsertAssignedWorkAnswerDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/comment: post: tags: - AssignedWork summary: |- Saves a comment to an assigned work. This is used by both students and mentors to comment on an assigned work. If the comment already exists, it will be updated. If the comment does not exist, it will be created. description: It will also update the status of the assigned work to "In Progress" if it was not already. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/UpsertAssignedWorkCommentDTO" text/json: schema: $ref: "#/components/schemas/UpsertAssignedWorkCommentDTO" application/*+json: schema: $ref: "#/components/schemas/UpsertAssignedWorkCommentDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/mark-solved: post: tags: - AssignedWork summary: Marks an assigned work as solved. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/mark-checked: post: tags: - AssignedWork summary: Marks an assigned work as checked parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/archive: patch: tags: - AssignedWork summary: Archives an assigned work. description: |- There is an archived flag in the assigned work for the following roles: student, mentor, and assistant. Toggling the archived flag for mentors will not affect the archived flag for students and assistants and so on. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/unarchive: patch: tags: - AssignedWork summary: unarchives an assigned work. description: |- There is an archived flag in the assigned work for the following roles: student, mentor, and assistant. Toggling the archived flag for mentors will not affect the archived flag for students and assistants and so on. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/add-helper-mentor: patch: tags: - AssignedWork summary: Adds a helper mentor to the assigned work so that they both can check the assigned work. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/AddHelperMentorOptionsDTO" text/json: schema: $ref: "#/components/schemas/AddHelperMentorOptionsDTO" application/*+json: schema: $ref: "#/components/schemas/AddHelperMentorOptionsDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/replace-main-mentor: patch: tags: - AssignedWork summary: Replace main mentor of the assigned work parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/ReplaceMainMentorOptionsDTO" text/json: schema: $ref: "#/components/schemas/ReplaceMainMentorOptionsDTO" application/*+json: schema: $ref: "#/components/schemas/ReplaceMainMentorOptionsDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/shift-deadline: patch: tags: - AssignedWork summary: Shift deadline of the assigned work parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/ShiftAssignedWorkDeadlineOptionsDTO" text/json: schema: $ref: "#/components/schemas/ShiftAssignedWorkDeadlineOptionsDTO" application/*+json: schema: $ref: "#/components/schemas/ShiftAssignedWorkDeadlineOptionsDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/return-to-solve: patch: tags: - AssignedWork summary: |- Changes the solve status of the assigned work back to in progress. This is usually used when the assigned work was marked as solved by mistake. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /assigned-work/{assignedWorkId}/return-to-check: patch: tags: - AssignedWork summary: |- Changes the check status of the assigned work back to in progress. This is usually used when the assigned work was marked as checked by mistake. parameters: - name: assignedWorkId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/login: post: tags: - Auth summary: Logs in a user with the provided credentials. requestBody: content: application/json: schema: $ref: "#/components/schemas/LoginDTO" text/json: schema: $ref: "#/components/schemas/LoginDTO" application/*+json: schema: $ref: "#/components/schemas/LoginDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/LoginResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/refresh: post: tags: - Auth summary: |- Exchanges the httpOnly refresh-token cookie for a new access token, rotating the refresh token. Returns 401 if the refresh token is missing, expired, or has already been used (in which case the session is revoked). responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/LoginResponseDTOApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/register: post: tags: - Auth summary: |- Registers a new user with the provided details. During registration, an email verification token is sent to the user's email address. requestBody: content: application/json: schema: $ref: "#/components/schemas/RegisterDTO" text/json: schema: $ref: "#/components/schemas/RegisterDTO" application/*+json: schema: $ref: "#/components/schemas/RegisterDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/username-check/{username}: get: tags: - Auth summary: |- Checks if the username is already taken. Returns true if the username is free, otherwise false parameters: - name: username in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/BooleanApiResponseDTO" /auth/request-password-change: patch: tags: - Auth summary: Requests a password change by sending a reset token to the user's email address. requestBody: content: application/json: schema: $ref: "#/components/schemas/RequestPasswordChangeDTO" text/json: schema: $ref: "#/components/schemas/RequestPasswordChangeDTO" application/*+json: schema: $ref: "#/components/schemas/RequestPasswordChangeDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/confirm-password-change: patch: tags: - Auth summary: Confirms a password change by validating the reset token and setting a new password. requestBody: content: application/json: schema: $ref: "#/components/schemas/ConfirmPasswordChangeDTO" text/json: schema: $ref: "#/components/schemas/ConfirmPasswordChangeDTO" application/*+json: schema: $ref: "#/components/schemas/ConfirmPasswordChangeDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/confirm-email: patch: tags: - Auth summary: |- Confirms an email change by validating the confirmation token. This endpoint is used to finalize the email change process after the user has requested it. requestBody: content: application/json: schema: $ref: "#/components/schemas/ConfirmEmailChangeDTO" text/json: schema: $ref: "#/components/schemas/ConfirmEmailChangeDTO" application/*+json: schema: $ref: "#/components/schemas/ConfirmEmailChangeDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /calendar/{userId}/{year}/{month}: get: tags: - Calendar summary: Gets the current user's calendar events. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: year in: path required: true schema: type: integer format: int32 - name: month in: path required: true schema: type: integer format: int32 responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/CalendarEventDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /calendar: post: tags: - Calendar summary: Creates a new calendar event for the current user. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateCalendarEventDTO" text/json: schema: $ref: "#/components/schemas/CreateCalendarEventDTO" application/*+json: schema: $ref: "#/components/schemas/CreateCalendarEventDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /calendar/{id}: delete: tags: - Calendar summary: Deletes a calendar event by its ID. parameters: - name: id in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/{courseId}: get: tags: - Course summary: Retrieves a course and its chapter/material tree by its unique identifier. parameters: - name: courseId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/CourseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - Course summary: Updates a course. parameters: - name: courseId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Course summary: Deletes a course. parameters: - name: courseId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/{courseId}/content/{contentId}: get: tags: - Course summary: Retrieves a material content by its unique identifier. parameters: - name: contentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: courseId in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/CourseMaterialContentDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course: get: tags: - Course summary: Search courses parameters: - name: Search in: query schema: type: string - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: SubjectId in: query schema: type: array items: $ref: "#/components/schemas/Ulid" - name: IsArchived in: query schema: type: boolean - name: Authors.Search in: query schema: type: string - name: Authors.Role in: query schema: type: array items: $ref: "#/components/schemas/UserRoles" - name: Authors.CreatedAt.Min in: query schema: type: string format: date-time - name: Authors.CreatedAt.Max in: query schema: type: string format: date-time - name: AuthorId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Name - CreatedAt - SubjectId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/CourseDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Course summary: Creates a course. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateCourseDTO" text/json: schema: $ref: "#/components/schemas/CreateCourseDTO" application/*+json: schema: $ref: "#/components/schemas/CreateCourseDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/{courseId}/archive: patch: tags: - Course summary: Archives a course. parameters: - name: courseId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/{courseId}/unarchive: patch: tags: - Course summary: Restores a course from the archive. parameters: - name: courseId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/{courseId}/material/{materialId}/reaction: patch: tags: - Course summary: Toggles the current student's reaction on a course material. parameters: - name: courseId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: materialId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: reaction in: query schema: $ref: "#/components/schemas/CourseMaterialReactionTypes" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/material-content: post: tags: - Course summary: Creates a course material content. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateCourseMaterialContentDTO" text/json: schema: $ref: "#/components/schemas/CreateCourseMaterialContentDTO" application/*+json: schema: $ref: "#/components/schemas/CreateCourseMaterialContentDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/material-content/{contentId}: patch: tags: - Course summary: Updates a course material content. parameters: - name: contentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/membership: get: tags: - Course summary: Searches the course memberships. parameters: - name: Search in: query schema: type: string - name: CourseId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: AssignerId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: StudentId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: IsActive in: query schema: type: boolean - name: IsArchived in: query schema: type: boolean - name: IsArchivedByStudent in: query schema: type: boolean - name: IsPinnedByStudent in: query schema: type: boolean - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - AssignerId - CreatedAt - CourseId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/CourseMembershipDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Course summary: Creates a course membership for a user requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateCourseMembershipDTO" text/json: schema: $ref: "#/components/schemas/CreateCourseMembershipDTO" application/*+json: schema: $ref: "#/components/schemas/CreateCourseMembershipDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/CourseMembershipDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/membership/{membershipId}/archive: patch: tags: - Course summary: Archives a course membership for the current student. parameters: - name: membershipId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/membership/{membershipId}/unarchive: patch: tags: - Course summary: Restores a course membership from the archive for the current student. parameters: - name: membershipId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/membership/{membershipId}/pin: patch: tags: - Course summary: Pins a course membership for the current student. parameters: - name: membershipId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/membership/{membershipId}/unpin: patch: tags: - Course summary: Unpins a course membership for the current student. parameters: - name: membershipId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /course/membership/{membershipId}: delete: tags: - Course summary: Removes a course membership for a user parameters: - name: membershipId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/external/providers: get: tags: - ExternalAuth summary: Lists the providers this environment can sign users in with. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/ExternalAuthProviderDTOIEnumerableApiResponseDTO" /auth/external/{provider}/start: post: tags: - ExternalAuth summary: Starts a login through the given provider and returns the URL to redirect the browser to. parameters: - name: provider in: path required: true schema: $ref: "#/components/schemas/ExternalAuthProviderType" requestBody: content: application/json: schema: $ref: "#/components/schemas/StartExternalAuthDTO" text/json: schema: $ref: "#/components/schemas/StartExternalAuthDTO" application/*+json: schema: $ref: "#/components/schemas/StartExternalAuthDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/ExternalAuthUrlDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/external/{provider}/link/start: post: tags: - ExternalAuth summary: Starts linking the given provider to the account of the caller. description: |- A separate endpoint from the login start so the intent rides on the authorization requirement instead of an optional bearer token. parameters: - name: provider in: path required: true schema: $ref: "#/components/schemas/ExternalAuthProviderType" requestBody: content: application/json: schema: $ref: "#/components/schemas/StartExternalAuthDTO" text/json: schema: $ref: "#/components/schemas/StartExternalAuthDTO" application/*+json: schema: $ref: "#/components/schemas/StartExternalAuthDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/ExternalAuthUrlDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/external/{provider}/callback: post: tags: - ExternalAuth summary: Redeems the callback the provider sent the browser back with. description: |- Anonymous because a login callback has no session yet; the intent comes from the server-side challenge, never from the request. parameters: - name: provider in: path required: true schema: $ref: "#/components/schemas/ExternalAuthProviderType" requestBody: content: application/json: schema: $ref: "#/components/schemas/ExternalAuthCallbackDTO" text/json: schema: $ref: "#/components/schemas/ExternalAuthCallbackDTO" application/*+json: schema: $ref: "#/components/schemas/ExternalAuthCallbackDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/ExternalAuthResultDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/external/identities: get: tags: - ExternalAuth summary: Lists the providers linked to the account of the caller. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/LinkedIdentityDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /auth/external/identities/{provider}: delete: tags: - ExternalAuth summary: Unlinks a provider from the account of the caller. parameters: - name: provider in: path required: true schema: $ref: "#/components/schemas/ExternalAuthProviderType" responses: "204": description: No Content content: application/json: {} "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /google-sheets/oauth-url: get: tags: - GoogleSheetsIntegration summary: Builds the Google consent URL to open before creating an integration. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/GoogleOAuthUrlDTOApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /google-sheets: get: tags: - GoogleSheetsIntegration summary: Retrieves Google Sheets integrations. Mentors only ever see their own. parameters: - name: Search in: query schema: type: string - name: Type in: query schema: type: array items: $ref: "#/components/schemas/GoogleSheetsIntegrationType" - name: Status in: query schema: type: array items: $ref: "#/components/schemas/GoogleSheetsIntegrationStatus" - name: LastRunAt.Min in: query schema: type: string format: date-time - name: LastRunAt.Max in: query schema: type: string format: date-time - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Name - CreatedAt - LastRunAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/GoogleSheetsIntegrationDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - GoogleSheetsIntegration summary: Creates a new Google Sheets integration from a freshly granted Google consent. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateGoogleSheetsIntegrationDTO" text/json: schema: $ref: "#/components/schemas/CreateGoogleSheetsIntegrationDTO" application/*+json: schema: $ref: "#/components/schemas/CreateGoogleSheetsIntegrationDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /google-sheets/{integrationId}: patch: tags: - GoogleSheetsIntegration summary: Changes an integration's name, schedule, or enabled state. parameters: - name: integrationId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateGoogleSheetsIntegrationDTO" text/json: schema: $ref: "#/components/schemas/UpdateGoogleSheetsIntegrationDTO" application/*+json: schema: $ref: "#/components/schemas/UpdateGoogleSheetsIntegrationDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - GoogleSheetsIntegration summary: Deletes a Google Sheets integration. The spreadsheet itself is left untouched. parameters: - name: integrationId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /google-sheets/{integrationId}/run: post: tags: - GoogleSheetsIntegration summary: |- Queues an integration to run. The export itself happens in the background, so this returns as soon as the run is scheduled rather than when the sheet is written. parameters: - name: integrationId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "202": description: Accepted content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/webhooks/kinescope: post: tags: - KinescopeWebhook summary: Receives Kinescope webhook notifications (e.g. video processing status changes). parameters: - name: secret in: query schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/KinescopeWebhook" text/json: schema: $ref: "#/components/schemas/KinescopeWebhook" application/*+json: schema: $ref: "#/components/schemas/KinescopeWebhook" responses: {} /media/upload-url: post: tags: - Media summary: Issue a presigned upload URL plus the headers the client must include on the PUT. requestBody: content: application/json: schema: $ref: "#/components/schemas/RequestUploadDTO" text/json: schema: $ref: "#/components/schemas/RequestUploadDTO" application/*+json: schema: $ref: "#/components/schemas/RequestUploadDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/UploadTicketDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "415": description: Unsupported Media Type content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /media/{mediaId}/complete: post: tags: - Media summary: |- Confirm that a previously requested upload has completed in S3. Returns a presigned GET URL for the uploaded object. parameters: - name: mediaId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/CompleteUploadDTO" text/json: schema: $ref: "#/components/schemas/CompleteUploadDTO" application/*+json: schema: $ref: "#/components/schemas/CompleteUploadDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/MediaDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /media/{mediaId}/download-url: get: tags: - Media summary: |- Issue a short-lived presigned download URL after enforcing every access rule registered for this media's category. parameters: - name: mediaId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/DownloadUrlDTOApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /media/{mediaId}: delete: tags: - Media summary: Delete the file from S3 and remove the DB record. Owner or admin only. parameters: - name: mediaId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /media/{mediaId}/raw: get: tags: - Media summary: |- Stable, embeddable URL for a media file. Enforces the same access rules as M:Noo.Api.Media.MediaController.GetDownloadUrlAsync(System.Ulid,System.Threading.CancellationToken), then 302-redirects to a freshly presigned download URL. The redirect is never cached, so each load resolves a valid URL. description: |- Accepts the bearer header (for API/Swagger callers) or the httpOnly media cookie, which the browser attaches to plain `` requests. parameters: - name: mediaId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "302": description: Found content: application/json: {} "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube: get: tags: - Nootube summary: Gets a list of videos, paginated parameters: - name: Search in: query schema: type: string - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: Type in: query schema: $ref: "#/components/schemas/VideoFilterType" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Title - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NooTubeVideoDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Nootube summary: |- Creates a video and initializes an upload on the configured video engine. Returns the upload URL the client should stream the file to (e.g. a tus endpoint). requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateNooTubeVideoDTO" text/json: schema: $ref: "#/components/schemas/CreateNooTubeVideoDTO" application/*+json: schema: $ref: "#/components/schemas/CreateNooTubeVideoDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NooTubeVideoUploadDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}: get: tags: - Nootube summary: Gets a video by its ID. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NooTubeVideoDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - Nootube summary: Updates a video. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Nootube summary: Deletes a video. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}/statistics: get: tags: - Nootube summary: |- Gets playback statistics for a video over an optional period (defaults to the video's whole lifetime). parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: from in: query schema: type: string format: date-time - name: to in: query schema: type: string format: date-time responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NooTubeVideoStatisticsDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}/finish: post: tags: - Nootube summary: Marks a video upload as finished and syncs its metadata from the video engine. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}/reaction: get: tags: - Nootube summary: |- Gets the reactions of all users on a video together with the reaction of the current user. Reaction counts are visible to everyone. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NooTubeVideoReactionsDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - Nootube summary: Toggles a reaction for a video parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: reaction in: query schema: $ref: "#/components/schemas/VideoReaction" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}/favourite: patch: tags: - Nootube summary: Toggles whether a video is in the current user's favourites. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}/comment: get: tags: - Nootube summary: Gets a paginated list of comments for a video. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: VideoId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - VideoId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NooTubeVideoCommentDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Nootube summary: Creates a comment for a video. parameters: - name: videoId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateNooTubeVideoCommentDTO" text/json: schema: $ref: "#/components/schemas/CreateNooTubeVideoCommentDTO" application/*+json: schema: $ref: "#/components/schemas/CreateNooTubeVideoCommentDTO" responses: "201": description: Created content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /nootube/{videoId}/comment/{commentId}: patch: tags: - Nootube summary: Updates a comment. parameters: - name: commentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: videoId in: path required: true schema: type: string requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Nootube summary: Deletes a comment. parameters: - name: commentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: videoId in: path required: true schema: type: string responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /notification: get: tags: - Notification summary: Gets the notifications for the user. parameters: - name: IsRead in: query schema: type: boolean - name: UserId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - IsRead - UserId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/NotificationDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Notification summary: Bulk create notiifcations requestBody: content: application/json: schema: $ref: "#/components/schemas/BulkCreateNotificationsDTO" text/json: schema: $ref: "#/components/schemas/BulkCreateNotificationsDTO" application/*+json: schema: $ref: "#/components/schemas/BulkCreateNotificationsDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /notification/{notificationId}/mark-read: patch: tags: - Notification summary: Mark a notification as read parameters: - name: notificationId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /notification/mark-all-read: patch: tags: - Notification summary: Mark all of the current user's notifications as read responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /notification/{notificationId}: delete: tags: - Notification summary: Deletes a notification parameters: - name: notificationId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /platform/version: get: tags: - Platform summary: Gets the current platform version. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/StringApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /platform/changelog: get: tags: - Platform summary: Gets the changelog responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/ChangeLogDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll: get: tags: - Poll summary: Get a list of polls based on the provided criteria. parameters: - name: Search in: query schema: type: string - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: UpdatedAt.Min in: query schema: type: string format: date-time - name: UpdatedAt.Max in: query schema: type: string format: date-time - name: IsActive in: query schema: type: boolean - name: IsAuthRequired in: query schema: type: boolean - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Title - Description - CreatedAt - UpdatedAt - IsActive - IsAuthRequired type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/PollDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Poll summary: Create a new poll. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreatePollDTO" text/json: schema: $ref: "#/components/schemas/CreatePollDTO" application/*+json: schema: $ref: "#/components/schemas/CreatePollDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll/user/{userId}/participation: get: tags: - Poll summary: Get a paginated list of the polls a specific user has participated in, as their participations. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: Search in: query description: |- Matched against whatever identifies a participation in the list being read: the participant when the list is a poll's results, the poll when it is a user's own participations. Both sit on a related entity, and CompareTo silently drops property paths it cannot resolve on the filtered entity, so the search is applied by the specification of the respective list. schema: type: string - name: PollId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: UserType in: query schema: $ref: "#/components/schemas/ParticipatingUserType" - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - PollId - UserType - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/PollParticipationDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll/{pollId}: get: tags: - Poll summary: Get a specific poll by its ID. parameters: - name: pollId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/PollDTOApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - Poll summary: Update an existing poll. parameters: - name: pollId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Poll summary: Delete a poll by its ID. parameters: - name: pollId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll/{pollId}/participation: get: tags: - Poll summary: Get the results of a specific poll. parameters: - name: pollId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: Search in: query description: |- Matched against whatever identifies a participation in the list being read: the participant when the list is a poll's results, the poll when it is a user's own participations. Both sit on a related entity, and CompareTo silently drops property paths it cannot resolve on the filtered entity, so the search is applied by the specification of the respective list. schema: type: string - name: PollId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: UserType in: query schema: $ref: "#/components/schemas/ParticipatingUserType" - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - PollId - UserType - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/PollParticipationDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll/participation/{participationId}: get: tags: - Poll summary: Get poll participation result by participation ID. parameters: - name: participationId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/PollParticipationDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll/{pollId}/participate: post: tags: - Poll summary: Create a participation in a poll. parameters: - name: pollId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/CreatePollParticipationDTO" text/json: schema: $ref: "#/components/schemas/CreatePollParticipationDTO" application/*+json: schema: $ref: "#/components/schemas/CreatePollParticipationDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /poll/answer/{answerId}: patch: tags: - Poll summary: Update a poll answer parameters: - name: answerId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /saved-task: get: tags: - SavedTask summary: Get a paginated list of the authenticated student's saved tasks. parameters: - name: Search in: query description: |- Matched against the work's title and its subject's name. Both sit behind the task rather than on the saved task itself, and CompareTo only resolves properties of the filtered entity, so the search is applied by Noo.Api.SavedTasks.Specifications.SavedTaskSpecification. schema: type: string - name: SubjectId in: query description: |- Subjects to keep. Behind the task like the search is, so it is applied by the specification too. schema: type: array items: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SavedTaskDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - SavedTask summary: Save a task of a checked assigned work of the authenticated student. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateSavedTaskDTO" text/json: schema: $ref: "#/components/schemas/CreateSavedTaskDTO" application/*+json: schema: $ref: "#/components/schemas/CreateSavedTaskDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /saved-task/reference: get: tags: - SavedTask summary: |- Get the authenticated student's saved tasks as bare references, optionally only the ones saved from one assigned work. description: |- Lets a work page tell saved tasks from unsaved ones without pulling the saved tasks themselves, content and all. parameters: - name: assignedWorkId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SavedTaskReferenceDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /saved-task/subject: get: tags: - SavedTask summary: |- Get the subjects the authenticated student has saved tasks on, with how many on each. What a quiz is set up from. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SavedTaskSubjectDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /saved-task/quiz: get: tags: - SavedTask summary: |- Get a random deck of the authenticated student's saved tasks to run a quiz on, optionally drawn from one subject only. parameters: - name: subjectId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: count in: query schema: maximum: 50 minimum: 5 type: integer format: int32 default: 5 responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SavedTaskDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /saved-task/{savedTaskId}/check: post: tags: - SavedTask summary: Check an answer to one saved task against its answer key. parameters: - name: savedTaskId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/CheckSavedTaskAnswerDTO" text/json: schema: $ref: "#/components/schemas/CheckSavedTaskAnswerDTO" application/*+json: schema: $ref: "#/components/schemas/CheckSavedTaskAnswerDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SavedTaskAnswerCheckDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /saved-task/{savedTaskId}: delete: tags: - SavedTask summary: Remove a saved task. parameters: - name: savedTaskId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /session/{userId}/online: get: tags: - Session summary: Gets users online information parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/OnlineInfoDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /session: get: tags: - Session summary: Gets the current user's list of sessions. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SessionDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Session summary: |- Deleted the current user session. Typically used to log out the user. responses: "204": description: No Content content: application/json: {} "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /session/{sessionId}: delete: tags: - Session summary: Deletes a specific session by its ID. parameters: - name: sessionId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /snippet: get: tags: - Snippet summary: Retrieves the snippets for the authenticated user. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SnippetDTOIEnumerableApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Snippet summary: Creates a new snippet for the authenticated user. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateSnippetDTO" text/json: schema: $ref: "#/components/schemas/CreateSnippetDTO" application/*+json: schema: $ref: "#/components/schemas/CreateSnippetDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /snippet/{snippetId}: patch: tags: - Snippet summary: Updates an existing snippet for the authenticated user. parameters: - name: snippetId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Snippet summary: Deletes a snippet for the authenticated user. parameters: - name: snippetId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /statistics/platform: get: tags: - Statistics summary: Retrieves the current statistics of the platform. parameters: - name: workType in: query schema: $ref: "#/components/schemas/WorkType" - name: from in: query schema: type: string format: date-time - name: to in: query schema: type: string format: date-time responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/StatisticsDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /statistics/user/{userId}: get: tags: - Statistics summary: Retrieves the statistics of a specific student. description: It returns 404 only if the student does not exist or is not a student or a mentor. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: workType in: path required: true schema: $ref: "#/components/schemas/WorkType" - name: from in: query schema: type: string format: date-time - name: to in: query schema: type: string format: date-time responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/StatisticsDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /subject: get: tags: - Subject summary: Retrieves a list of subjects based on the provided criteria. parameters: - name: Search in: query schema: type: string - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Name type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SubjectDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Subject summary: Creates a new subject with the provided details. requestBody: content: application/json: schema: $ref: "#/components/schemas/SubjectCreationDTO" text/json: schema: $ref: "#/components/schemas/SubjectCreationDTO" application/*+json: schema: $ref: "#/components/schemas/SubjectCreationDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /subject/{subjectId}: get: tags: - Subject summary: Retrieves a subject by its unique identifier. parameters: - name: subjectId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SubjectDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - Subject summary: Updates an existing subject with the provided details. parameters: - name: subjectId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Subject summary: Deletes a subject by its unique identifier. parameters: - name: subjectId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /support/article: get: tags: - Support summary: Retrieves a list of all support articles by category parameters: - name: Search in: query schema: type: string - name: Category in: query schema: $ref: "#/components/schemas/SupportCategory" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Order type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SupportArticleDTOListApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Support summary: Creates a new support article. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateSupportArticleDTO" text/json: schema: $ref: "#/components/schemas/CreateSupportArticleDTO" application/*+json: schema: $ref: "#/components/schemas/CreateSupportArticleDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /support/article/{articleSlug}: get: tags: - Support summary: Retrieves a support article by its slug parameters: - name: articleSlug in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/SupportArticleDTOApiResponseDTO" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /support/article/{articleId}: patch: tags: - Support summary: Updates a support article by its ID using a JSON Patch document. parameters: - name: articleId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Support summary: Deletes a support article by its ID. parameters: - name: articleId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user: get: tags: - User summary: Retrieves a list of users based on the provided search criteria. parameters: - name: Search in: query schema: type: string - name: Role in: query schema: type: array items: $ref: "#/components/schemas/UserRoles" - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Name - Username - Email - TelegramUsername - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/UserDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}: get: tags: - User summary: Retrieves a user by their id parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/UserDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - User summary: Patches a user by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/avatar: patch: tags: - User summary: Updates a user's avatar by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/role: patch: tags: - User summary: |- Changes the role of a user by their unique identifier. Only possible to change role if the user is a student, otherwise it will throw a conflict error. description: After role change, all the user sessions will be invalidated, the user will be logged out. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/ChangeRoleDTO" text/json: schema: $ref: "#/components/schemas/ChangeRoleDTO" application/*+json: schema: $ref: "#/components/schemas/ChangeRoleDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/block: patch: tags: - User summary: Blocks a user by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/unblock: patch: tags: - User summary: Unblocks a user by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/verify-manual: patch: tags: - User summary: Verifies a user manually by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/mentor-assignment: get: tags: - User summary: Retrieves a student's mentor assignments by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: SubjectId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: MentorId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: StudentId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - SubjectId - MentorId - StudentId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/MentorAssignmentDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/student-assignment: get: tags: - User summary: Retrieves a mentor's assignments by their unique identifier. parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: SubjectId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: MentorId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: StudentId in: query description: Universally Unique Lexicographically Sortable Identifier (ULID). schema: $ref: "#/components/schemas/Ulid" - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - SubjectId - MentorId - StudentId type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/MentorAssignmentDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{studentId}/assign-mentor: patch: tags: - User summary: Assigns a mentor to a student for a specific subject. description: If a user already has a mentor assigned for the subject, it will be unassigned and a new one will be assigned. parameters: - name: studentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateMentorAssignmentDTO" text/json: schema: $ref: "#/components/schemas/CreateMentorAssignmentDTO" application/*+json: schema: $ref: "#/components/schemas/CreateMentorAssignmentDTO" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{assignmentId}/unassign-mentor: patch: tags: - User summary: Unassigns a mentor from a student. parameters: - name: assignmentId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/delete: post: tags: - User summary: Deletes a current user. description: |- The user is only soft-deleted, meaning their data is retained but they can no longer log in and do not appear in user searches. Also, the personal data of the user (such as email and name) will be anonymized to protect their privacy requestBody: content: application/json: schema: $ref: "#/components/schemas/UserDeletionDTO" text/json: schema: $ref: "#/components/schemas/UserDeletionDTO" application/*+json: schema: $ref: "#/components/schemas/UserDeletionDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user/{userId}/history: get: tags: - UserHistory summary: "Gets a user's activity log, paginated.\n \nThe `perspective`\ \ parameter picks the side: `subject` (the default) returns what\nhappened\ \ to the user, `actor` returns what the user did to others." parameters: - name: userId in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" - name: Type in: query schema: type: array items: $ref: "#/components/schemas/UserHistoryType" - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" - name: perspective in: query description: Which side of an entry the user being viewed is on. schema: $ref: "#/components/schemas/UserHistoryPerspective" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/UserHistoryDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /user-settings: get: tags: - UserSettings summary: |- Get the current user settings. This includes theme, font size, and other user preferences. description: |- This endpoint always returns settings and never null or NotFound. If the user has not set any settings, default values will be returned. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/UserSettingsDTOApiResponseDTO" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - UserSettings summary: Update the current user settings. description: |- This update endpoint, unlike others, uses a full DTO instead of a patch document. This is because user settings are typically small and it's easier to manage them as a whole. And they are always loaded as a whole so partial updates are less relevant. requestBody: content: application/json: schema: $ref: "#/components/schemas/UserSettingsUpdateDTO" text/json: schema: $ref: "#/components/schemas/UserSettingsUpdateDTO" application/*+json: schema: $ref: "#/components/schemas/UserSettingsUpdateDTO" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /work: get: tags: - Work summary: Searches for works based on the provided criteria. parameters: - name: Search in: query schema: type: string - name: Type in: query schema: type: array items: $ref: "#/components/schemas/WorkType" - name: SubjectId in: query schema: type: array items: $ref: "#/components/schemas/Ulid" - name: CreatedAt.Min in: query schema: type: string format: date-time - name: CreatedAt.Max in: query schema: type: string format: date-time - name: Page in: query schema: type: integer format: int32 - name: PerPage in: query schema: type: integer format: int32 - name: SortBy in: query schema: $ref: "#/components/schemas/Sorting" - name: Sort in: query schema: enum: - Title - Type - SubjectId - CreatedAt type: string - name: CombineWith in: query schema: $ref: "#/components/schemas/CombineType" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/WorkDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" post: tags: - Work summary: Creates a new work. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateWorkDTO" text/json: schema: $ref: "#/components/schemas/CreateWorkDTO" application/*+json: schema: $ref: "#/components/schemas/CreateWorkDTO" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/IdResponseDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /work/{id}: get: tags: - Work summary: |- Retrieves a specific work by its ID. It will also include the work's associated tasks parameters: - name: id in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/WorkDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" patch: tags: - Work summary: Updates an existing work. parameters: - name: id in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" requestBody: content: application/json-patch+json: schema: type: array items: required: - op - path type: object properties: op: type: string path: type: string value: type: object responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" delete: tags: - Work summary: Deletes a work by its ID. parameters: - name: id in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "204": description: No Content content: application/json: {} "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /work/{id}/statistics: get: tags: - Work summary: Retrieves statistics of a particular work by its id parameters: - name: id in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/WorkStatisticsDTOApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" /work/{id}/relation: get: tags: - Work summary: |- Retrieves the list of materials with their chain via chapters up to a course which has a work assignment with the given work id parameters: - name: id in: path description: Universally Unique Lexicographically Sortable Identifier (ULID). required: true schema: $ref: "#/components/schemas/Ulid" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/WorkRelationDTOIEnumerableApiResponseDTO" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/SerializedNooException" components: schemas: AddHelperMentorOptionsDTO: required: - mentorId type: object properties: mentorId: $ref: "#/components/schemas/Ulid" additionalProperties: false AssignedWorkAnswerDTO: required: - _entityName - createdAt - id - maxScore - status - taskId type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" richTextContent: $ref: "#/components/schemas/IRichTextType" wordContent: type: string nullable: true mentorComment: $ref: "#/components/schemas/IRichTextType" score: type: integer format: int32 nullable: true maxScore: type: integer format: int32 status: $ref: "#/components/schemas/AssignedWorkAnswerStatus" detailedScore: type: object additionalProperties: type: integer format: int32 nullable: true taskId: $ref: "#/components/schemas/Ulid" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false AssignedWorkAnswerStatus: enum: - not-submitted - submitted - checked type: string AssignedWorkCheckStatus: enum: - not-checked - in-progress - checked-in-deadline - checked-after-deadline - checked-automatically type: string AssignedWorkDTO: required: - _entityName - attempt - checkStatus - id - isArchivedByAssistants - isArchivedByMentors - isArchivedByStudent - maxScore - solveStatus - studentId - title - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" title: minLength: 1 type: string type: $ref: "#/components/schemas/WorkType" attempt: type: integer format: int32 solveStatus: $ref: "#/components/schemas/AssignedWorkSolveStatus" soldeDeadlineAt: type: string format: date-time nullable: true solvedAt: type: string format: date-time nullable: true checkStatus: $ref: "#/components/schemas/AssignedWorkCheckStatus" checkDeadlineAt: type: string format: date-time nullable: true checkedAt: type: string format: date-time nullable: true score: type: integer format: int32 nullable: true maxScore: type: integer format: int32 isArchivedByStudent: type: boolean isArchivedByMentors: type: boolean isArchivedByAssistants: type: boolean studentCommentId: $ref: "#/components/schemas/Ulid" mainMentorCommentId: $ref: "#/components/schemas/Ulid" helperMentorCommentId: $ref: "#/components/schemas/Ulid" studentId: $ref: "#/components/schemas/Ulid" mainMentorId: $ref: "#/components/schemas/Ulid" helperMentorId: $ref: "#/components/schemas/Ulid" student: $ref: "#/components/schemas/UserDTO" mainMentor: $ref: "#/components/schemas/UserDTO" helperMentor: $ref: "#/components/schemas/UserDTO" work: $ref: "#/components/schemas/WorkDTO" answers: type: array items: $ref: "#/components/schemas/AssignedWorkAnswerDTO" nullable: true additionalProperties: false AssignedWorkDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/AssignedWorkDTO" meta: nullable: true additionalProperties: false AssignedWorkDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/AssignedWorkDTO" nullable: true meta: nullable: true additionalProperties: false AssignedWorkHistoryDTO: required: - _entityName - changedAt - createdAt - id - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" type: $ref: "#/components/schemas/AssignedWorkHistoryType" changedAt: type: string format: date-time value: type: object additionalProperties: type: string nullable: true changedBy: $ref: "#/components/schemas/UserDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false AssignedWorkHistoryDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/AssignedWorkHistoryDTO" nullable: true meta: nullable: true additionalProperties: false AssignedWorkHistoryType: enum: - created - started-solving - solve-deadline-shifted - solved - started-checking - check-deadline-shifted - checked - sent-on-recheck - sent-on-resolve - helper-mentor-added - main-mentor-changed type: string AssignedWorkListTab: enum: - all - not-solved - not-checked - checked type: string description: |- A slice of the assigned work list as the user sees it: one tab of the list page, with its own counter next to the title. What each of them contains is defined in one place, `AssignedWorkTabCriteria`. AssignedWorkProgressDTO: type: object properties: assignedWorkId: $ref: "#/components/schemas/Ulid" solveStatus: $ref: "#/components/schemas/AssignedWorkSolveStatus" solvedAt: type: string format: date-time nullable: true checkStatus: $ref: "#/components/schemas/AssignedWorkCheckStatus" checkedAt: type: string format: date-time nullable: true score: type: integer format: int32 nullable: true maxScore: type: integer format: int32 nullable: true attempt: type: integer format: int32 createdAt: type: string format: date-time additionalProperties: false AssignedWorkProgressDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/AssignedWorkProgressDTO" nullable: true meta: nullable: true additionalProperties: false AssignedWorkSolveStatus: enum: - not-solved - in-progress - solved-in-deadline - solved-after-deadline type: string AssignedWorksCounts: required: - all - checked - notChecked - notSolved type: object properties: all: type: integer format: int32 notSolved: type: integer format: int32 notChecked: type: integer format: int32 checked: type: integer format: int32 additionalProperties: false AssignedWorksMetadataDTO: required: - counts type: object properties: counts: $ref: "#/components/schemas/AssignedWorksCounts" additionalProperties: false AssignedWorksMetadataDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/AssignedWorksMetadataDTO" meta: nullable: true additionalProperties: false BooleanApiResponseDTO: type: object properties: data: type: boolean meta: nullable: true additionalProperties: false BulkCreateNotificationsDTO: required: - isBanner - title - type - userIds type: object properties: userIds: type: array items: $ref: "#/components/schemas/Ulid" type: minLength: 1 type: string title: minLength: 1 type: string message: type: string nullable: true isBanner: type: boolean link: $ref: "#/components/schemas/FrontendLink" linkText: type: string nullable: true channels: type: array items: $ref: "#/components/schemas/NotificationChannelType" nullable: true additionalProperties: false CalendarEventDTO: required: - _entityName - createdAt - id - startDateTime - title - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" assignedWorkId: $ref: "#/components/schemas/Ulid" type: $ref: "#/components/schemas/CalendarEventType" title: minLength: 1 type: string description: type: string nullable: true startDateTime: type: string format: date-time endDateTime: type: string format: date-time nullable: true createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CalendarEventDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/CalendarEventDTO" nullable: true meta: nullable: true additionalProperties: false CalendarEventType: enum: - custom - assigned-work-check-deadline - assigned-work-solve-deadline - assigned-work-cheked - assigned-work-solved type: string ChangeLogDTO: type: object properties: version: type: string nullable: true date: type: string format: date-time changes: type: array items: $ref: "#/components/schemas/PlatformChange" nullable: true additionalProperties: false ChangeLogDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/ChangeLogDTO" nullable: true meta: nullable: true additionalProperties: false ChangeRoleDTO: required: - newRole type: object properties: newRole: $ref: "#/components/schemas/UserRoles" additionalProperties: false ChangeType: enum: - feature - bug-fix - optimization - refactor type: string CheckSavedTaskAnswerDTO: type: object properties: answer: maxLength: 255 type: string nullable: true additionalProperties: false CombineType: enum: - and - or type: string CompleteUploadDTO: required: - size type: object properties: size: minimum: 0 type: integer format: int64 etag: type: string nullable: true additionalProperties: false ConfirmEmailChangeDTO: required: - token type: object properties: token: minLength: 1 type: string additionalProperties: false ConfirmPasswordChangeDTO: required: - newPassword - token type: object properties: token: maxLength: 200 minLength: 1 type: string newPassword: minLength: 1 type: string additionalProperties: false CourseChapterDTO: required: - _entityName - createdAt - id - isActive - materials - order - subChapters - title type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" order: type: integer format: int32 title: minLength: 1 type: string color: type: string nullable: true isActive: type: boolean publishAt: type: string format: date-time nullable: true parentChapterId: $ref: "#/components/schemas/Ulid" subChapters: type: array items: $ref: "#/components/schemas/CourseChapterDTO" materials: type: array items: $ref: "#/components/schemas/CourseMaterialDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CourseDTO: required: - _entityName - createdAt - id - isArchived - name - subjectId type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" name: minLength: 1 type: string startDate: type: string format: date-time nullable: true endDate: type: string format: date-time nullable: true description: type: string nullable: true thumbnailId: $ref: "#/components/schemas/Ulid" thumbnail: $ref: "#/components/schemas/MediaDTO" memberCount: type: integer format: int32 nullable: true isArchived: type: boolean subjectId: $ref: "#/components/schemas/Ulid" subject: $ref: "#/components/schemas/SubjectDTO" chapters: type: array items: $ref: "#/components/schemas/CourseChapterDTO" nullable: true authors: type: array items: $ref: "#/components/schemas/UserDTO" nullable: true createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CourseDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/CourseDTO" meta: nullable: true additionalProperties: false CourseDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/CourseDTO" nullable: true meta: nullable: true additionalProperties: false CourseMaterialContentDTO: required: - _entityName - content - createdAt - id - medias - nooTubeVideos - workAssignments type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" content: $ref: "#/components/schemas/IRichTextType" poll: $ref: "#/components/schemas/PollDTO" nooTubeVideos: type: array items: $ref: "#/components/schemas/NooTubeVideoDTO" medias: type: array items: $ref: "#/components/schemas/MediaDTO" workAssignments: type: array items: $ref: "#/components/schemas/CourseWorkAssignmentDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CourseMaterialContentDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/CourseMaterialContentDTO" meta: nullable: true additionalProperties: false CourseMaterialDTO: required: - _entityName - chapterId - createdAt - id - isActive - isPinned - order - publishAt - title type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" order: type: integer format: int32 title: minLength: 1 type: string titleColor: type: string nullable: true isActive: type: boolean isPinned: type: boolean publishAt: type: string format: date-time chapterId: $ref: "#/components/schemas/Ulid" contentId: $ref: "#/components/schemas/Ulid" myReaction: $ref: "#/components/schemas/CourseMaterialReactionTypes" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CourseMaterialReactionTypes: enum: - check - thinking type: string CourseMembershipDTO: required: - _entityName - courseId - createdAt - id - isActive - isArchived - isArchivedByStudent - isPinnedByStudent - studentId - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" type: $ref: "#/components/schemas/CourseMembershipType" courseId: $ref: "#/components/schemas/Ulid" course: $ref: "#/components/schemas/CourseDTO" isActive: type: boolean isArchived: type: boolean isArchivedByStudent: type: boolean isPinnedByStudent: type: boolean studentId: $ref: "#/components/schemas/Ulid" student: $ref: "#/components/schemas/UserDTO" assignerId: $ref: "#/components/schemas/Ulid" assigner: $ref: "#/components/schemas/UserDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CourseMembershipDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/CourseMembershipDTO" meta: nullable: true additionalProperties: false CourseMembershipDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/CourseMembershipDTO" nullable: true meta: nullable: true additionalProperties: false CourseMembershipType: enum: - manual-assigned - external-assigned - subscription type: string CourseWorkAssignmentDTO: required: - _entityName - createdAt - id - isActive type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" workId: $ref: "#/components/schemas/Ulid" work: $ref: "#/components/schemas/WorkDTO" note: type: string nullable: true isActive: type: boolean deactivatedAt: type: string format: date-time nullable: true solveDeadlineAt: type: string format: date-time nullable: true checkDeadlineAt: type: string format: date-time nullable: true createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false CreateCalendarEventDTO: type: object properties: title: type: string nullable: true description: type: string nullable: true type: $ref: "#/components/schemas/CalendarEventType" startDateTime: type: string format: date-time endDateTime: type: string format: date-time nullable: true assignedWorkId: $ref: "#/components/schemas/Ulid" additionalProperties: false CreateCourseChapterDTO: required: - isActive - order - title type: object properties: order: type: integer format: int32 title: maxLength: 255 minLength: 1 type: string color: maxLength: 63 type: string nullable: true isActive: type: boolean publishAt: type: string format: date-time nullable: true subChapters: type: array items: $ref: "#/components/schemas/CreateCourseChapterDTO" nullable: true materials: type: array items: $ref: "#/components/schemas/CreateCourseMaterialDTO" nullable: true additionalProperties: false CreateCourseDTO: required: - name - subjectId type: object properties: name: maxLength: 255 minLength: 1 type: string startDate: type: string format: date-time nullable: true endDate: type: string format: date-time nullable: true description: maxLength: 500 type: string nullable: true thumbnailId: $ref: "#/components/schemas/Ulid" subjectId: $ref: "#/components/schemas/Ulid" chapters: type: array items: $ref: "#/components/schemas/CreateCourseChapterDTO" nullable: true additionalProperties: false CreateCourseMaterialContentDTO: required: - content type: object properties: content: $ref: "#/components/schemas/IRichTextType" pollId: $ref: "#/components/schemas/Ulid" nootubeVideoIds: type: array items: $ref: "#/components/schemas/Ulid" nullable: true mediaIds: type: array items: $ref: "#/components/schemas/Ulid" nullable: true workAssignments: type: array items: $ref: "#/components/schemas/CreateCourseWorkAssignmentDTO" nullable: true additionalProperties: false CreateCourseMaterialDTO: required: - isActive - order - title type: object properties: order: type: integer format: int32 title: maxLength: 255 minLength: 1 type: string titleColor: maxLength: 63 type: string nullable: true isActive: type: boolean isPinned: type: boolean publishAt: type: string format: date-time nullable: true additionalProperties: false CreateCourseMembershipDTO: required: - courseId - studentId type: object properties: studentId: $ref: "#/components/schemas/Ulid" courseId: $ref: "#/components/schemas/Ulid" notifyStudent: type: boolean additionalProperties: false CreateCourseWorkAssignmentDTO: required: - isActive - order - workId type: object properties: order: type: integer format: int32 workId: $ref: "#/components/schemas/Ulid" note: type: string nullable: true isActive: type: boolean deactivatedAt: type: string format: date-time nullable: true solveDeadlineAt: type: string format: date-time nullable: true checkDeadlineAt: type: string format: date-time nullable: true additionalProperties: false CreateGoogleSheetsIntegrationDTO: required: - googleAuthCode - googleAuthState - name - schedule - type type: object properties: name: maxLength: 255 minLength: 1 type: string type: $ref: "#/components/schemas/GoogleSheetsIntegrationType" parameters: $ref: "#/components/schemas/ExportParametersDTO" schedule: $ref: "#/components/schemas/GoogleSheetsIntegrationSchedule" googleAuthCode: minLength: 1 type: string description: |- The one-time authorization code from the Google consent popup. Required on every create: each integration gets its own freshly granted refresh token rather than reusing one. googleAuthState: minLength: 1 type: string description: |- The `state` handed out with the consent URL and echoed back by Google. Proves the code was obtained by this user through this platform. additionalProperties: false CreateMentorAssignmentDTO: required: - mentorId - studentId - subjectId type: object properties: studentId: $ref: "#/components/schemas/Ulid" mentorId: $ref: "#/components/schemas/Ulid" subjectId: $ref: "#/components/schemas/Ulid" additionalProperties: false CreateNooTubeVideoCommentDTO: required: - content type: object properties: content: maxLength: 512 minLength: 1 type: string additionalProperties: false CreateNooTubeVideoDTO: required: - fileSize - isActive - isListed - title type: object properties: title: maxLength: 255 minLength: 1 type: string serviceType: $ref: "#/components/schemas/NooTubeServiceType" description: maxLength: 512 type: string nullable: true thumbnailId: $ref: "#/components/schemas/Ulid" fileSize: minimum: 1 type: integer format: int64 fileName: maxLength: 255 type: string nullable: true isActive: type: boolean isListed: type: boolean publishedAt: type: string format: date-time nullable: true additionalProperties: false CreatePollAnswerDTO: required: - pollQuestionId type: object properties: pollQuestionId: $ref: "#/components/schemas/Ulid" value: $ref: "#/components/schemas/PollAnswerValue" mediaIds: type: array items: $ref: "#/components/schemas/Ulid" description: |- Files answering a Noo.Api.Polls.Types.PollQuestionType.Files question. They are uploaded before the poll is submitted, so the answer only carries their ids. nullable: true additionalProperties: false CreatePollDTO: required: - isActive - isAuthRequired - questions - title type: object properties: title: maxLength: 255 minLength: 1 type: string description: maxLength: 512 type: string nullable: true isActive: type: boolean expiresAt: type: string format: date-time nullable: true isAuthRequired: type: boolean questions: maxItems: 100 minItems: 1 type: array items: $ref: "#/components/schemas/CreatePollQuestionDTO" additionalProperties: false CreatePollParticipationDTO: required: - answers type: object properties: userType: $ref: "#/components/schemas/ParticipatingUserType" userExternalIdentifier: type: string nullable: true userExternalData: nullable: true answers: type: array items: $ref: "#/components/schemas/CreatePollAnswerDTO" additionalProperties: false CreatePollQuestionDTO: required: - title - type type: object properties: title: maxLength: 255 minLength: 1 type: string description: maxLength: 512 type: string nullable: true isRequired: type: boolean order: maximum: 2147483647 minimum: 0 type: integer format: int32 type: $ref: "#/components/schemas/PollQuestionType" config: $ref: "#/components/schemas/PollQuestionConfig" additionalProperties: false CreateSavedTaskDTO: required: - assignedWorkId - taskId type: object properties: taskId: $ref: "#/components/schemas/Ulid" assignedWorkId: $ref: "#/components/schemas/Ulid" additionalProperties: false CreateSnippetDTO: type: object properties: name: maxLength: 63 type: string nullable: true content: $ref: "#/components/schemas/IRichTextType" additionalProperties: false CreateSupportArticleDTO: required: - order - title type: object properties: title: maxLength: 255 minLength: 1 type: string order: maximum: 255 minimum: 0 type: integer format: int32 content: $ref: "#/components/schemas/IRichTextType" isActive: type: boolean category: $ref: "#/components/schemas/SupportCategory" additionalProperties: false CreateWorkDTO: required: - subjectId - tasks - title - type type: object properties: title: maxLength: 200 minLength: 1 type: string type: $ref: "#/components/schemas/WorkType" description: maxLength: 255 type: string nullable: true subjectId: $ref: "#/components/schemas/Ulid" tasks: maxItems: 300 minItems: 1 type: array items: $ref: "#/components/schemas/CreateWorkTaskDTO" additionalProperties: false CreateWorkTaskDTO: required: - content - maxScore - order - type type: object properties: type: $ref: "#/components/schemas/WorkTaskType" order: maximum: 2147483647 minimum: 0 type: integer format: int32 maxScore: maximum: 2147483647 minimum: 1 type: integer format: int32 content: $ref: "#/components/schemas/IRichTextType" rightAnswers: type: array items: type: string nullable: true solveHint: $ref: "#/components/schemas/IRichTextType" explanation: $ref: "#/components/schemas/IRichTextType" checkStrategy: $ref: "#/components/schemas/WorkTaskCheckStrategy" showAnswerBeforeCheck: type: boolean checkOneByOne: type: boolean additionalProperties: false DeviceType: enum: - unknown - desktop - mobile - tablet type: string DownloadUrlDTO: required: - url type: object properties: url: minLength: 1 type: string additionalProperties: false DownloadUrlDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/DownloadUrlDTO" meta: nullable: true additionalProperties: false ExportParametersDTO: type: object properties: role: $ref: "#/components/schemas/UserRoles" courseId: $ref: "#/components/schemas/Ulid" subjectId: $ref: "#/components/schemas/Ulid" createdFrom: type: string format: date-time nullable: true createdTo: type: string format: date-time nullable: true pollId: $ref: "#/components/schemas/Ulid" studentId: $ref: "#/components/schemas/Ulid" mentorId: $ref: "#/components/schemas/Ulid" additionalProperties: false description: |- Selection criteria for an export. Which members are required depends on the export type and is validated by that type's profile. ExternalAuthCallbackDTO: required: - parameters type: object properties: parameters: type: object additionalProperties: type: string description: |- The callback query string as the browser received it. Passed through untouched so provider-specific parameters (VK's `device_id`) need no shared plumbing. additionalProperties: false ExternalAuthIntent: enum: - login - link type: string ExternalAuthProviderDTO: required: - displayName - provider type: object properties: provider: $ref: "#/components/schemas/ExternalAuthProviderType" displayName: minLength: 1 type: string additionalProperties: false description: A provider the current environment can actually sign users in with. ExternalAuthProviderDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/ExternalAuthProviderDTO" nullable: true meta: nullable: true additionalProperties: false ExternalAuthProviderType: enum: - yandex - vk type: string ExternalAuthResultDTO: required: - intent - provider type: object properties: intent: $ref: "#/components/schemas/ExternalAuthIntent" provider: $ref: "#/components/schemas/ExternalAuthProviderType" returnUrl: type: string nullable: true session: $ref: "#/components/schemas/LoginResponseDTO" additionalProperties: false description: |- One callback endpoint serves both intents, because the browser lands on a single registered redirect URI. The intent tells the frontend how to finish. ExternalAuthResultDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/ExternalAuthResultDTO" meta: nullable: true additionalProperties: false ExternalAuthUrlDTO: required: - url type: object properties: url: minLength: 1 type: string description: The provider's authorization page. The browser is sent here as a full-page redirect. additionalProperties: false ExternalAuthUrlDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/ExternalAuthUrlDTO" meta: nullable: true additionalProperties: false FontSize: enum: - small - normal - large type: string FrontendLink: required: - name type: object properties: name: minLength: 1 type: string params: nullable: true additionalProperties: false GoogleOAuthUrlDTO: required: - state - url type: object properties: url: minLength: 1 type: string state: minLength: 1 type: string description: |- Opaque value the frontend must hand back with the authorization code, so a code obtained in someone else's browser cannot be replayed into this user's account. additionalProperties: false GoogleOAuthUrlDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/GoogleOAuthUrlDTO" meta: nullable: true additionalProperties: false GoogleSheetsIntegrationDTO: required: - _entityName - createdAt - id - name - ownerId - parameters - runState - schedule - status - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" name: minLength: 1 type: string type: $ref: "#/components/schemas/GoogleSheetsIntegrationType" parameters: $ref: "#/components/schemas/ExportParametersDTO" schedule: $ref: "#/components/schemas/GoogleSheetsIntegrationSchedule" nextRunAt: type: string format: date-time nullable: true lastRunAt: type: string format: date-time nullable: true status: $ref: "#/components/schemas/GoogleSheetsIntegrationStatus" runState: $ref: "#/components/schemas/GoogleSheetsIntegrationRunState" lastErrorText: type: string nullable: true lastRowCount: type: integer format: int32 nullable: true googleAccount: type: string nullable: true spreadsheetUrl: type: string nullable: true ownerId: $ref: "#/components/schemas/Ulid" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false GoogleSheetsIntegrationDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/GoogleSheetsIntegrationDTO" nullable: true meta: nullable: true additionalProperties: false GoogleSheetsIntegrationRunState: enum: - idle - queued - running type: string description: |- Where an integration is in its run cycle. Deliberately separate from Noo.Api.GoogleSheetsIntegrations.Types.GoogleSheetsIntegrationStatus: a run must never overwrite whether the user has the integration enabled. GoogleSheetsIntegrationSchedule: enum: - manual - hourly - daily - weekly type: string GoogleSheetsIntegrationStatus: enum: - active - inactive - error type: string GoogleSheetsIntegrationType: enum: - users - courses - poll-results - assigned-works type: string IRichTextType: type: object additionalProperties: false description: Represents a rich text type for use in rich text fields. IdResponseDTO: type: object properties: id: $ref: "#/components/schemas/Ulid" additionalProperties: false IdResponseDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/IdResponseDTO" meta: nullable: true additionalProperties: false KinescopeWebhook: type: object properties: event: type: string nullable: true data: $ref: "#/components/schemas/KinescopeWebhookData" additionalProperties: false KinescopeWebhookData: type: object properties: id: type: string nullable: true status: type: string nullable: true message: type: string nullable: true additionalProperties: false LinkedIdentityDTO: required: - linkedAt - provider type: object properties: provider: $ref: "#/components/schemas/ExternalAuthProviderType" email: type: string description: The email the provider reported, for telling two linked accounts apart. nullable: true displayName: type: string nullable: true lastLoginAt: type: string format: date-time nullable: true linkedAt: type: string format: date-time additionalProperties: false LinkedIdentityDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/LinkedIdentityDTO" nullable: true meta: nullable: true additionalProperties: false LoginDTO: required: - password - usernameOrEmail type: object properties: usernameOrEmail: maxLength: 200 minLength: 1 type: string password: maxLength: 256 minLength: 1 type: string additionalProperties: false LoginResponseDTO: required: - accessToken - expiresAt - userId - userRole type: object properties: accessToken: minLength: 1 type: string expiresAt: type: string format: date-time userId: $ref: "#/components/schemas/Ulid" userRole: $ref: "#/components/schemas/UserRoles" additionalProperties: false LoginResponseDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/LoginResponseDTO" meta: nullable: true additionalProperties: false MediaCategory: enum: - user-avatar - video-cover - video-rich-text - course-cover - course-attachment - course-rich-text - work-rich-text - profile-background - assigned-work-student-rich-text - assigned-work-mentor-rich-text - assigned-work-student-comment-rich-text - assigned-work-mentor-comment-rich-text - help-rich-text - snippet-rich-text - poll-answer-file type: string MediaDTO: required: - _entityName - actualName - category - createdAt - extension - id - name - order - ownerId - path - status - url type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" path: minLength: 1 type: string name: minLength: 1 type: string actualName: minLength: 1 type: string extension: minLength: 1 type: string size: type: integer format: int64 order: type: integer format: int32 category: $ref: "#/components/schemas/MediaCategory" status: $ref: "#/components/schemas/MediaStatus" entityId: $ref: "#/components/schemas/Ulid" ownerId: $ref: "#/components/schemas/Ulid" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true url: minLength: 1 type: string additionalProperties: false MediaDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/MediaDTO" meta: nullable: true additionalProperties: false MediaStatus: enum: - pending - completed type: string MentorAssignmentDTO: required: - _entityName - createdAt - id - mentorId - studentId - subjectId type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" studentId: $ref: "#/components/schemas/Ulid" student: $ref: "#/components/schemas/UserDTO" mentorId: $ref: "#/components/schemas/Ulid" mentor: $ref: "#/components/schemas/UserDTO" subjectId: $ref: "#/components/schemas/Ulid" subject: $ref: "#/components/schemas/SubjectDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false MentorAssignmentDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/MentorAssignmentDTO" nullable: true meta: nullable: true additionalProperties: false NooTubeServiceType: enum: - kinescope type: string NooTubeVideoCommentDTO: required: - _entityName - content - createdAt - id - userId type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" userId: $ref: "#/components/schemas/Ulid" user: $ref: "#/components/schemas/UserDTO" content: minLength: 1 type: string createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false NooTubeVideoCommentDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/NooTubeVideoCommentDTO" nullable: true meta: nullable: true additionalProperties: false NooTubeVideoDTO: required: - _entityName - createdAt - id - isActive - isFavourite - isListed - publishedAt - serviceType - state - title - uploadedById type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" title: minLength: 1 type: string description: type: string nullable: true thumbnailId: $ref: "#/components/schemas/Ulid" externalIdentifier: type: string nullable: true externalUrl: type: string nullable: true externalThumbnailUrl: type: string nullable: true serviceType: $ref: "#/components/schemas/NooTubeServiceType" state: $ref: "#/components/schemas/VideoState" duration: type: integer format: int32 nullable: true isActive: type: boolean isListed: type: boolean isFavourite: type: boolean publishedAt: type: string format: date-time uploadedById: $ref: "#/components/schemas/Ulid" uploadedBy: $ref: "#/components/schemas/UserDTO" thumbnail: $ref: "#/components/schemas/MediaDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false NooTubeVideoDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/NooTubeVideoDTO" meta: nullable: true additionalProperties: false NooTubeVideoDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/NooTubeVideoDTO" nullable: true meta: nullable: true additionalProperties: false NooTubeVideoReactionsDTO: required: - counts type: object properties: myReaction: $ref: "#/components/schemas/VideoReaction" counts: type: object properties: like: type: integer format: int32 dislike: type: integer format: int32 heart: type: integer format: int32 laugh: type: integer format: int32 sad: type: integer format: int32 mindblowing: type: integer format: int32 additionalProperties: false description: How many users picked each reaction. Reactions nobody picked are omitted. additionalProperties: false description: |- Reactions of every user on a single video. Unlike course material reactions, video reaction counts are public: everyone who may watch the video sees them. NooTubeVideoReactionsDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/NooTubeVideoReactionsDTO" meta: nullable: true additionalProperties: false NooTubeVideoStatisticsDTO: required: - from - playerLoads - timeline - to - uniqueViews - views - watchTimeSeconds type: object properties: from: type: string format: date-time to: type: string format: date-time views: type: integer format: int64 uniqueViews: type: integer format: int64 watchTimeSeconds: type: integer format: int32 playerLoads: type: integer format: int64 timeline: type: array items: $ref: "#/components/schemas/NooTubeVideoStatisticsPointDTO" additionalProperties: false NooTubeVideoStatisticsDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/NooTubeVideoStatisticsDTO" meta: nullable: true additionalProperties: false NooTubeVideoStatisticsPointDTO: required: - date - playerLoads - uniqueViews - views - watchTimeSeconds type: object properties: date: type: string format: date-time views: type: integer format: int64 uniqueViews: type: integer format: int64 watchTimeSeconds: type: integer format: int32 playerLoads: type: integer format: int64 additionalProperties: false NooTubeVideoUploadDTO: required: - externalId - uploadUrl - videoId type: object properties: videoId: $ref: "#/components/schemas/Ulid" uploadUrl: minLength: 1 type: string externalId: minLength: 1 type: string additionalProperties: false NooTubeVideoUploadDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/NooTubeVideoUploadDTO" meta: nullable: true additionalProperties: false NotificationChannelType: enum: - http - telegram type: string NotificationDTO: required: - _entityName - id - isBanner - isRead - title - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" type: minLength: 1 type: string title: minLength: 1 type: string message: type: string nullable: true isRead: type: boolean isBanner: type: boolean link: $ref: "#/components/schemas/FrontendLink" linkText: type: string nullable: true additionalProperties: false NotificationDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/NotificationDTO" nullable: true meta: nullable: true additionalProperties: false OnlineInfoDTO: required: - isOnline type: object properties: isOnline: type: boolean lastOnlineAt: type: string format: date-time nullable: true additionalProperties: false OnlineInfoDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/OnlineInfoDTO" meta: nullable: true additionalProperties: false ParticipatingUserType: enum: - authenticated-user - telegram-user type: string PlatformChange: type: object properties: type: $ref: "#/components/schemas/ChangeType" author: type: string nullable: true description: type: string nullable: true additionalProperties: false PollAnswerDTO: required: - _entityName - createdAt - id - medias - pollQuestionId type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" pollQuestionId: $ref: "#/components/schemas/Ulid" value: $ref: "#/components/schemas/PollAnswerValue" medias: type: array items: $ref: "#/components/schemas/MediaDTO" description: |- Files attached to the answer. Only a Noo.Api.Polls.Types.PollQuestionType.Files question ever has them. createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false PollAnswerValue: type: object properties: type: $ref: "#/components/schemas/PollQuestionType" value: nullable: true additionalProperties: false PollDTO: required: - _entityName - createdAt - expiresAt - hasParticipated - id - isActive - isAuthRequired - participationsCount - title type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" title: minLength: 1 type: string description: type: string nullable: true isActive: type: boolean expiresAt: type: string format: date-time isAuthRequired: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true questions: type: array items: $ref: "#/components/schemas/PollQuestionDTO" nullable: true participationsCount: type: integer format: int32 hasParticipated: type: boolean description: |- Whether the caller has already answered this poll. Only computed when a single poll is fetched by its id, and always false for an anonymous caller — an unauthenticated visitor cannot be recognized before they identify themselves. additionalProperties: false PollDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/PollDTO" meta: nullable: true additionalProperties: false PollDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/PollDTO" nullable: true meta: nullable: true additionalProperties: false PollParticipationDTO: required: - _entityName - createdAt - id - pollId - userType type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" pollId: $ref: "#/components/schemas/Ulid" poll: $ref: "#/components/schemas/PollDTO" userId: $ref: "#/components/schemas/Ulid" userType: $ref: "#/components/schemas/ParticipatingUserType" userExternalIdentifier: type: string nullable: true userExternalData: nullable: true user: $ref: "#/components/schemas/UserDTO" answers: type: array items: $ref: "#/components/schemas/PollAnswerDTO" nullable: true createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false PollParticipationDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/PollParticipationDTO" meta: nullable: true additionalProperties: false PollParticipationDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/PollParticipationDTO" nullable: true meta: nullable: true additionalProperties: false PollQuestionConfig: required: - type type: object properties: type: $ref: "#/components/schemas/PollQuestionType" minChoices: type: integer format: int32 nullable: true maxChoices: type: integer format: int32 nullable: true minTextLength: type: integer format: int32 nullable: true maxTextLength: type: integer format: int32 nullable: true minIntValue: type: integer format: int32 nullable: true maxIntValue: type: integer format: int32 nullable: true minRating: type: integer format: int32 nullable: true maxRating: type: integer format: int32 nullable: true maxFileSize: maximum: 157286400 minimum: 1 type: integer description: Maximum file size in bytes format: int32 nullable: true allowedFileTypes: maxItems: 5 type: array items: type: string description: Allowed file types (MIME types) nullable: true maxFileCount: maximum: 10 minimum: 1 type: integer format: int32 nullable: true additionalProperties: false PollQuestionDTO: required: - _entityName - createdAt - id - isRequired - order - title - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" order: type: integer format: int32 title: minLength: 1 type: string description: type: string nullable: true isRequired: type: boolean type: $ref: "#/components/schemas/PollQuestionType" config: $ref: "#/components/schemas/PollQuestionConfig" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false PollQuestionType: enum: - checkbox - single-choice - multiple-choice - text - number - date - date-time - rating - files type: string RegisterDTO: required: - email - name - password - username type: object properties: name: maxLength: 200 minLength: 1 type: string username: maxLength: 100 minLength: 3 type: string password: minLength: 1 type: string email: minLength: 1 type: string format: email additionalProperties: false RemakeAssignedWorkOptionsDTO: type: object properties: includeOnlyWrongTasks: type: boolean additionalProperties: false ReplaceMainMentorOptionsDTO: required: - mentorId type: object properties: mentorId: $ref: "#/components/schemas/Ulid" notifyMentor: type: boolean notifyStudent: type: boolean additionalProperties: false RequestPasswordChangeDTO: required: - email type: object properties: email: minLength: 1 type: string format: email additionalProperties: false RequestUploadDTO: required: - category - contentType - fileName type: object properties: category: $ref: "#/components/schemas/MediaCategory" fileName: maxLength: 255 minLength: 1 type: string contentType: minLength: 1 type: string entityId: $ref: "#/components/schemas/Ulid" additionalProperties: false SavedTaskAnswerCheckDTO: required: - isCorrect - maxScore - score type: object properties: score: type: integer format: int32 maxScore: type: integer format: int32 isCorrect: type: boolean description: |- Whether the answer earned every point on offer. A partially scored answer is not a right one as far as the quiz is concerned. additionalProperties: false description: |- The verdict on one quiz answer, scored by the same checker that scores the work it came from. SavedTaskAnswerCheckDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/SavedTaskAnswerCheckDTO" meta: nullable: true additionalProperties: false SavedTaskDTO: required: - _entityName - assignedWorkId - createdAt - id - task - taskId - workId type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true taskId: $ref: "#/components/schemas/Ulid" task: $ref: "#/components/schemas/WorkTaskDTO" assignedWorkId: $ref: "#/components/schemas/Ulid" workId: $ref: "#/components/schemas/Ulid" work: $ref: "#/components/schemas/WorkDTO" additionalProperties: false SavedTaskDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SavedTaskDTO" nullable: true meta: nullable: true additionalProperties: false SavedTaskReferenceDTO: required: - id - taskId type: object properties: id: $ref: "#/components/schemas/Ulid" taskId: $ref: "#/components/schemas/Ulid" additionalProperties: false description: |- A saved task stripped down to what a work page needs to tell saved tasks from unsaved ones and to unsave them again — without pulling the tasks themselves, content and all, a second time. SavedTaskReferenceDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SavedTaskReferenceDTO" nullable: true meta: nullable: true additionalProperties: false SavedTaskSubjectDTO: required: - savedTaskCount type: object properties: subject: $ref: "#/components/schemas/SubjectDTO" savedTaskCount: type: integer format: int32 additionalProperties: false description: |- One subject a student has saved tasks on, with how many. What a quiz is set up from: which subjects are on offer and which have enough cards to run. SavedTaskSubjectDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SavedTaskSubjectDTO" nullable: true meta: nullable: true additionalProperties: false ScoreSummaryDTO: type: object properties: absolute: type: number format: double nullable: true percentage: type: number format: double nullable: true additionalProperties: false SerializedNooException: type: object properties: id: type: string nullable: true logId: type: string nullable: true statusCode: type: integer format: int32 message: type: string nullable: true payload: nullable: true additionalProperties: false SessionDTO: required: - _entityName - deviceType - id - lastRequestAt type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" lastRequestAt: type: string format: date-time device: type: string nullable: true os: type: string nullable: true browser: type: string nullable: true deviceType: $ref: "#/components/schemas/DeviceType" additionalProperties: false SessionDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SessionDTO" nullable: true meta: nullable: true additionalProperties: false ShiftAssignedWorkDeadlineOptionsDTO: required: - newDeadline type: object properties: newDeadline: type: string format: date-time notifyOthers: type: boolean additionalProperties: false SnippetDTO: required: - _entityName - createdAt - id - name type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" name: minLength: 1 type: string content: $ref: "#/components/schemas/IRichTextType" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false SnippetDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SnippetDTO" nullable: true meta: nullable: true additionalProperties: false Sorting: enum: - ascending - descending type: string StartExternalAuthDTO: type: object properties: returnUrl: maxLength: 255 type: string description: Relative path to land on once the callback succeeds. nullable: true additionalProperties: false StatisticsBlockDTO: required: - numberBlocks - title type: object properties: title: minLength: 1 type: string description: type: string nullable: true graph: $ref: "#/components/schemas/StatisticsGraphDTO" numberBlocks: type: array items: $ref: "#/components/schemas/StatisticsNumberBlockDTO" additionalProperties: false StatisticsDTO: required: - blocks type: object properties: blocks: type: array items: $ref: "#/components/schemas/StatisticsBlockDTO" additionalProperties: false StatisticsDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/StatisticsDTO" meta: nullable: true additionalProperties: false StatisticsGraphDTO: required: - label - lines type: object properties: label: minLength: 1 type: string lines: type: array items: $ref: "#/components/schemas/StatisticsGraphLineDTO" additionalProperties: false StatisticsGraphLineDTO: required: - name - values type: object properties: name: minLength: 1 type: string values: type: object additionalProperties: type: number format: double nullable: true additionalProperties: false StatisticsNumberBlockDTO: required: - title type: object properties: title: minLength: 1 type: string description: type: string nullable: true value: type: number format: double nullable: true units: type: string nullable: true subValues: type: object additionalProperties: type: number format: double nullable: true nullable: true additionalProperties: false StringApiResponseDTO: type: object properties: data: type: string nullable: true meta: nullable: true additionalProperties: false SubjectCreationDTO: required: - color - name type: object properties: name: maxLength: 100 minLength: 1 type: string color: minLength: 1 pattern: ^#[0-9A-Fa-f]{6}$ type: string additionalProperties: false SubjectDTO: required: - _entityName - color - createdAt - id - name type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" name: minLength: 1 type: string color: minLength: 1 type: string createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false SubjectDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/SubjectDTO" meta: nullable: true additionalProperties: false SubjectDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SubjectDTO" nullable: true meta: nullable: true additionalProperties: false SubjectUpdateDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/SubjectUpdateDTOOperation" nullable: true readOnly: true additionalProperties: false SubjectUpdateDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false SupportArticleDTO: required: - _entityName - category - content - createdAt - id - isActive - order - slug - title type: object properties: _entityName: minLength: 1 type: string readOnly: true slug: minLength: 1 type: string order: maximum: 255 minimum: 0 type: integer format: int32 id: $ref: "#/components/schemas/Ulid" title: minLength: 1 type: string content: $ref: "#/components/schemas/IRichTextType" isActive: type: boolean category: $ref: "#/components/schemas/SupportCategory" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false SupportArticleDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/SupportArticleDTO" meta: nullable: true additionalProperties: false SupportArticleDTOListApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/SupportArticleDTO" nullable: true meta: nullable: true additionalProperties: false SupportCategory: enum: - courses - payment - works type: string TaskSummaryDTO: required: - maxScore - taskId type: object properties: taskId: $ref: "#/components/schemas/Ulid" averageScore: type: number format: double nullable: true maxScore: type: integer format: int32 additionalProperties: false Ulid: pattern: ^[0-7][0-9A-HJKMNP-TV-Z]{25}$ type: string properties: random: type: string format: byte nullable: true readOnly: true time: type: string format: date-time readOnly: true additionalProperties: false description: Universally Unique Lexicographically Sortable Identifier (ULID). format: ulid externalDocs: description: ULID Specification url: https://github.com/ulid/spec example: 01ARZ3NDEKTSV4RRFFQ69G5FAV UpdateCourseDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateCourseDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateCourseDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateCourseMaterialContentDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateCourseMaterialContentDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateCourseMaterialContentDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateGoogleSheetsIntegrationDTO: type: object properties: name: maxLength: 255 minLength: 1 type: string nullable: true schedule: $ref: "#/components/schemas/GoogleSheetsIntegrationSchedule" status: $ref: "#/components/schemas/GoogleSheetsIntegrationStatus" additionalProperties: false description: |- The parts of an integration that can be changed after creation. Notably not the export type, its parameters, or the Google account — changing any of those makes it a different export, and the permission check that justified the original would not have been repeated. Omitted members are left as they are. UpdateNooTubeVideoCommentDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateNooTubeVideoCommentDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateNooTubeVideoCommentDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateNooTubeVideoDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateNooTubeVideoDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateNooTubeVideoDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdatePollAnswerDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdatePollAnswerDTOOperation" nullable: true readOnly: true additionalProperties: false UpdatePollAnswerDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdatePollDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdatePollDTOOperation" nullable: true readOnly: true additionalProperties: false UpdatePollDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateSnippetDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateSnippetDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateSnippetDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateSupportArticleDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateSupportArticleDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateSupportArticleDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateUserAvatarDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateUserAvatarDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateUserAvatarDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateUserDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateUserDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateUserDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UpdateWorkDTOJsonPatchDocument: type: object properties: operations: type: array items: $ref: "#/components/schemas/UpdateWorkDTOOperation" nullable: true readOnly: true additionalProperties: false UpdateWorkDTOOperation: type: object properties: path: type: string nullable: true op: type: string nullable: true from: type: string nullable: true value: nullable: true additionalProperties: false UploadTicketDTO: required: - expiresAt - headers - mediaId - uploadUrl type: object properties: mediaId: $ref: "#/components/schemas/Ulid" uploadUrl: minLength: 1 type: string headers: type: object additionalProperties: type: string description: Headers the client MUST include verbatim on the PUT request to S3. expiresAt: type: string format: date-time additionalProperties: false UploadTicketDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/UploadTicketDTO" meta: nullable: true additionalProperties: false UpsertAssignedWorkAnswerDTO: required: - status - taskId type: object properties: id: $ref: "#/components/schemas/Ulid" richTextContent: $ref: "#/components/schemas/IRichTextType" wordContent: maxLength: 63 type: string nullable: true mentorComment: $ref: "#/components/schemas/IRichTextType" score: maximum: 500 minimum: 0 type: integer format: int32 nullable: true maxScore: maximum: 500 minimum: 0 type: integer format: int32 detailedScore: type: object additionalProperties: type: integer format: int32 nullable: true status: $ref: "#/components/schemas/AssignedWorkAnswerStatus" taskId: $ref: "#/components/schemas/Ulid" additionalProperties: false UpsertAssignedWorkCommentDTO: type: object properties: id: $ref: "#/components/schemas/Ulid" content: $ref: "#/components/schemas/IRichTextType" additionalProperties: false UserAvatarDTO: required: - _entityName - avatarType - createdAt - id type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" avatarType: $ref: "#/components/schemas/UserAvatarType" avatarUrl: type: string nullable: true mediaId: type: string nullable: true media: $ref: "#/components/schemas/MediaDTO" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false UserAvatarType: enum: - none - custom - telegram - external type: string UserDTO: required: - _entityName - createdAt - id - mentors - name - role - username type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" username: minLength: 1 type: string email: type: string nullable: true phone: type: string nullable: true name: minLength: 1 type: string telegramId: type: string nullable: true telegramUsername: type: string nullable: true role: $ref: "#/components/schemas/UserRoles" avatar: $ref: "#/components/schemas/UserAvatarDTO" mentors: type: array items: $ref: "#/components/schemas/UserMentorDTO" description: |- Mentors of the user, filled where the query loads them (the user search). Only students have mentors, so it stays empty for everyone else. isBlocked: type: boolean isVerified: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false UserDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/UserDTO" meta: nullable: true additionalProperties: false UserDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/UserDTO" nullable: true meta: nullable: true additionalProperties: false UserDeletionDTO: required: - password type: object properties: password: minLength: 1 type: string additionalProperties: false UserHistoryDTO: required: - _entityName - createdAt - id - subjectUserId - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" type: $ref: "#/components/schemas/UserHistoryType" subjectUserId: $ref: "#/components/schemas/Ulid" actorUserId: $ref: "#/components/schemas/Ulid" actor: $ref: "#/components/schemas/UserDTO" payload: type: object additionalProperties: type: string nullable: true createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true additionalProperties: false UserHistoryDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/UserHistoryDTO" nullable: true meta: nullable: true additionalProperties: false UserHistoryPerspective: enum: - subject - actor type: string description: Which side of an entry the user being viewed is on. UserHistoryType: enum: - registered - email-confirmed - email-changed - password-changed - password-reset - profile-updated - role-changed - blocked - unblocked - verified - added-to-course - removed-from-course - mentor-assigned - mentor-unassigned - work-assigned - work-solved - work-checked - work-sent-on-recheck - work-sent-on-resolve type: string description: "The kinds of event recorded in a user's activity log.\n \ \ \nStored as a string rather than a MySQL ENUM, so adding a kind needs\ \ no schema migration.\nSerialized to kebab-case over the wire by the global\ \ enum converter." UserMentorDTO: required: - id - name type: object properties: id: $ref: "#/components/schemas/Ulid" name: minLength: 1 type: string subjectName: type: string nullable: true subjectColor: type: string nullable: true additionalProperties: false description: |- A mentor of a student, as shown next to the student in the user list. Flat and minimal on purpose: listings only name the mentor, link to them and colour them by subject. Everything else about an assignment lives in Noo.Api.Users.DTO.MentorAssignmentDTO. UserRoles: enum: - admin - teacher - mentor - assistant - student type: string UserSettingsDTO: type: object properties: theme: $ref: "#/components/schemas/UserTheme" fontSize: $ref: "#/components/schemas/FontSize" backgroundImage: $ref: "#/components/schemas/MediaDTO" additionalProperties: false UserSettingsDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/UserSettingsDTO" meta: nullable: true additionalProperties: false UserSettingsUpdateDTO: type: object properties: theme: $ref: "#/components/schemas/UserTheme" fontSize: $ref: "#/components/schemas/FontSize" backgroundImageId: $ref: "#/components/schemas/Ulid" additionalProperties: false UserTheme: enum: - light - dark - system type: string VideoFilterType: enum: - all - favourite - own type: string VideoReaction: enum: - like - dislike - heart - laugh - sad - mindblowing type: string VideoState: enum: - not-uploaded - uploading - encoding - uploaded - published type: string WorkDTO: required: - _entityName - createdAt - id - maxScore - title - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true title: minLength: 1 type: string type: $ref: "#/components/schemas/WorkType" description: type: string nullable: true maxScore: type: integer format: int32 subjectId: $ref: "#/components/schemas/Ulid" subject: $ref: "#/components/schemas/SubjectDTO" tasks: type: array items: $ref: "#/components/schemas/WorkTaskDTO" nullable: true additionalProperties: false WorkDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/WorkDTO" meta: nullable: true additionalProperties: false WorkDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/WorkDTO" nullable: true meta: nullable: true additionalProperties: false WorkRelationDTO: required: - assignment - courseId - materialId - path type: object properties: courseId: $ref: "#/components/schemas/Ulid" materialId: $ref: "#/components/schemas/Ulid" subject: $ref: "#/components/schemas/SubjectDTO" path: type: array items: type: string assignment: $ref: "#/components/schemas/CourseWorkAssignmentDTO" additionalProperties: false WorkRelationDTOIEnumerableApiResponseDTO: type: object properties: data: type: array items: $ref: "#/components/schemas/WorkRelationDTO" nullable: true meta: nullable: true additionalProperties: false WorkStatisticsDTO: required: - averageWorkScore - medianWorkScore - taskSummaries - work - workSolveCount type: object properties: taskSummaries: type: array items: $ref: "#/components/schemas/TaskSummaryDTO" averageWorkScore: $ref: "#/components/schemas/ScoreSummaryDTO" medianWorkScore: $ref: "#/components/schemas/ScoreSummaryDTO" workSolveCount: type: integer format: int32 work: $ref: "#/components/schemas/WorkDTO" additionalProperties: false WorkStatisticsDTOApiResponseDTO: type: object properties: data: $ref: "#/components/schemas/WorkStatisticsDTO" meta: nullable: true additionalProperties: false WorkTaskCheckStrategy: enum: - manual - exact-match-or-zero - exact-match-with-wrong-character - multiple-choice - sequence type: string WorkTaskDTO: required: - _entityName - checkStrategy - content - createdAt - id - maxScore - order - type type: object properties: _entityName: minLength: 1 type: string readOnly: true id: $ref: "#/components/schemas/Ulid" createdAt: type: string format: date-time updatedAt: type: string format: date-time nullable: true type: $ref: "#/components/schemas/WorkTaskType" order: type: integer format: int32 maxScore: type: integer format: int32 averageScore: type: number format: double nullable: true content: $ref: "#/components/schemas/IRichTextType" rightAnswers: type: array items: type: string nullable: true solveHint: $ref: "#/components/schemas/IRichTextType" explanation: $ref: "#/components/schemas/IRichTextType" checkStrategy: $ref: "#/components/schemas/WorkTaskCheckStrategy" showAnswerBeforeCheck: type: boolean checkOneByOne: type: boolean additionalProperties: false WorkTaskType: enum: - word - text - essay - final-essay - dictation type: string WorkType: enum: - test - mini-test - phrase - trial-work - second-part type: string securitySchemes: Bearer: type: http description: JWT Authorization header using the Bearer scheme scheme: Bearer