Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (27 loc) · 1.44 KB

File metadata and controls

40 lines (27 loc) · 1.44 KB

Test project, mobile application backend

Ubuntu Python HTML5 MariaDB FastAPI Redis

Request models ↘️
  • Request from CLIENT (insert/select from DB)
Server ↘️

Response model:

return{
    'status': status.HTTP_200_OK,
    'dat': rq,
    'key': key
}

or: 

return {
    'status': status.HTTP_400_BAD_REQUEST,
    'error': 'Произошла внутренняя ошибка сервера. Попробуйте позже',
}
SQL (insert/select/update) ↘️
Response models ↘️

JSON response models in

return {
	'dat': rq
}

Image alt