Installed ant-design
Cosmetic changes
Added UserController and GET on /users
Added AnnotationController and Service
Documents can now be assigned to Users
Fix in AuthorizationAttribute
Merge branch 'features/9471-backend-role-api' into 'dev' Re #9471
Login endpoint now returns user role in response.
See merge request aswi/aswi-2022/aswi20220x00!12
Fixed problems after a merge
Minor fix
Merge branch 'features/9471-backend-role-api' of https://gitlab.kiv.zcu.cz/aswi/aswi-2022/aswi20220x00 into features/9471-backend-role-api
Authentication controller now returns user role
Moved Enums to Models project
Merge branch 'features/9464-backend-documents-api' into 'dev' Re #9464
Basic DocumentController and DocumentService implementation
Adding documents, getting paged list of documents
Error handling middleware
AutoMapper Entity to DTO mapping configured...
Renamed PLAINTEXT format Enum to TEXTFILE
Moved InternalServerError to ControllerBase
Move Authorize attribute up in DocumentController
Use ContextUtils in AuthorizationAttribute
Added ERole check to [Authorize] attribute
[Authorize] has ERole.ANNOTATOR as default, ERole can be specified as a parameter
Documents to add expected in base64
Documents sent in the request are all in base64 and have enum to specify either TXT file or a ZIP file
Added default value to Annotation.Note
Check number of documents in DocumentService.GetDocuments
Code cleanup
DocumentService now uses AutoMapper
Added AutoMapper, configured, added DTO mappings
Také k dispozici: Atom