- Request from CLIENT (insert/select from DB)
Response model:
return{
'status': status.HTTP_200_OK,
'dat': rq,
'key': key
}
or:
return {
'status': status.HTTP_400_BAD_REQUEST,
'error': 'Произошла внутренняя ошибка сервера. Попробуйте позже',
}
JSON response models in
return {
'dat': rq
}