docs(backend): Assignments swagger annotaties
This commit is contained in:
parent
41dcb57b25
commit
38acfa6a4a
4 changed files with 206 additions and 1 deletions
|
@ -3,6 +3,39 @@ import { Group } from './group.entity.js';
|
|||
import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { Language } from '../content/language.js';
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* components:
|
||||
* schemas:
|
||||
* Submission:
|
||||
* type: object
|
||||
* properties:
|
||||
* learningObjectHruid:
|
||||
* type: string
|
||||
* learningObjectLanguage:
|
||||
* $ref: '#/components/schemas/Language'
|
||||
* learningObjectVersion:
|
||||
* type: string
|
||||
* default: '1'
|
||||
* submissionNumber:
|
||||
* type: number
|
||||
* submitter:
|
||||
* $ref: '#/components/schemas/Student'
|
||||
* submissionTime:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* onBehalfOf:
|
||||
* $ref: '#/components/schemas/Group'
|
||||
* content:
|
||||
* type: string
|
||||
* required:
|
||||
* - learningObjectHruid
|
||||
* - learningObjectLanguage
|
||||
* - submissionNumber
|
||||
* - submitter
|
||||
* - submissionTime
|
||||
* - content
|
||||
*/
|
||||
@Entity()
|
||||
export class Submission {
|
||||
@PrimaryKey({ type: 'string' })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue