File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -242,18 +242,19 @@ DRF_API_LOGGER_PATH_TYPE possible values are:
242242You can use the DRF API Logger Model to query some information.
243243
244244Note: Make sure to set "DRF_API_LOGGER_DATABASE = True" in settings.py file.
245- ```
245+ ``` python
246246from drf_api_logger.models import APILogsModel
247247
248248"""
249249Example:
250250Select records for status_code 200.
251251"""
252+
252253result_for_200_status_code = APILogsModel.objects.filter(status_code = 200 )
253254```
254255
255256DRF API Logger Model:
256- ```
257+ ``` python
257258class APILogsModel (Model ):
258259 id = models.BigAutoField(primary_key = True )
259260 api = models.CharField(max_length = 1024 , help_text = ' API URL' )
@@ -281,4 +282,3 @@ class APILogsModel(Model):
281282After sometime, there will be too many data in the database. Searching and filter may get slower.
282283If you want, you can delete or archive the older data.
283284To improve the searching or filtering, try to add indexes in the 'drf_api_logs' table.
284-
You can’t perform that action at this time.
0 commit comments