Skip to content

Backend for validation reports#9

Open
Krutov777 wants to merge 24 commits intomainfrom
backend-for-validation-reports
Open

Backend for validation reports#9
Krutov777 wants to merge 24 commits intomainfrom
backend-for-validation-reports

Conversation

@Krutov777
Copy link
Copy Markdown
Collaborator

No description provided.

Krutov777 and others added 23 commits June 30, 2022 21:48
added plugs for docx(doc), pdf, odt
added file format detection algorithm
added upload file from pro.guap.ru(with authorization)
Redefined http status for pydantic schemas from 422 to 400
#1
added 2 endpoints into handlers.py
replaced type error message in str
added username and password in second endpoint(ReportDescriptionWithLink -> BaseModel, report_validation -> handler, FileUploader)
removed save file on disk
changed logic checkers into class FileUploader -> upload_file
added partially rate limit
default host http//127.0.0.1:port/ or http//localhost:port
when starting the docker container, u can specify the parameter -e
RATE_LIMIT_FIRST[SECOND]_ENDPOINT=number(number of requests per minute)
example: after build docker myimage, docker run -e RATE_LIMIT_SECOND_ENDPOINT=2 -p 127.0.0.1:8000:8000 --name mycontainer myimage
added docker info
Moved DockerFile to project root as per @markpolyak requirement
@Krutov777 Krutov777 linked an issue Jul 11, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Бэкенд для проверки отчетов

2 participants