Closed MartaSien closed 3 months ago
LOGGING = {
'version': 1,
'filters': {
'require_debug_true': {
'()': 'django.utils.log.RequireDebugTrue',
}
},
'handlers': {
'console': {
'level': 'DEBUG',
'filters': ['require_debug_true'],
'class': 'logging.StreamHandler',
}
},
'loggers': {
'django.db.backends': {
'level': 'DEBUG',
'handlers': ['console'],
}
}
}
06.03.2024
We work on endpoint:
api/students/{id}/points
How should the response look like? It should return a list, but of how many last records?
We decided to implement pagination. We tried to test it in console, but we were unable to import models in django shell
We verified if the endpoint is secure. Only a caregiver of a given student should access their summary of points. We needed to add this check.
Getting
n
last records by passingn
via query params