feat: answer routes en put question
This commit is contained in:
		
							parent
							
								
									6a1adb0ee3
								
							
						
					
					
						commit
						e8e2466b76
					
				
					 12 changed files with 288 additions and 62 deletions
				
			
		|  | @ -1,14 +1,19 @@ | |||
| import { UserDTO } from './user'; | ||||
| import { QuestionDTO, QuestionId } from './question'; | ||||
| import {TeacherDTO} from "./teacher"; | ||||
| 
 | ||||
| export interface AnswerDTO { | ||||
|     author: UserDTO; | ||||
|     author: TeacherDTO; | ||||
|     toQuestion: QuestionDTO; | ||||
|     sequenceNumber: number; | ||||
|     timestamp: string; | ||||
|     content: string; | ||||
| } | ||||
| 
 | ||||
| export interface AnswerData { | ||||
|     author: string; | ||||
|     content: string; | ||||
| } | ||||
| 
 | ||||
| export interface AnswerId { | ||||
|     author: string; | ||||
|     toQuestion: QuestionId; | ||||
|  |  | |||
|  | @ -4,8 +4,13 @@ import { StudentDTO } from './student'; | |||
| export interface QuestionDTO { | ||||
|     learningObjectIdentifier: LearningObjectIdentifierDTO; | ||||
|     sequenceNumber?: number; | ||||
|     author: string; | ||||
|     timestamp?: string; | ||||
|     author: StudentDTO; | ||||
|     timestamp: string; | ||||
|     content: string; | ||||
| } | ||||
| 
 | ||||
| export interface QuestionData { | ||||
|     author?: string; | ||||
|     content: string; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl