File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -221,13 +221,6 @@ DRF_API_LOGGER_MAX_REQUEST_BODY_SIZE = 1024 # default to -1, no limit.
221
221
DRF_API_LOGGER_MAX_RESPONSE_BODY_SIZE = 1024 # default to -1, no limit.
222
222
```
223
223
224
- ### API with or without Host
225
- You can specify whether an endpoint of API should have absolute URI or not by setting this variable in the DRF settings.py file.
226
- ``` python
227
- DRF_API_LOGGER_PATH_TYPE = ' ABSOLUTE' # Default to ABSOLUTE if not specified
228
- # Possible values are ABSOLUTE, FULL_PATH or RAW_URI
229
- ```
230
-
231
224
### Tracing
232
225
You can enable tracing by specifying ` DRF_API_LOGGER_ENABLE_TRACING ` in settings.py.
233
226
This will add a tracing ID (UUID.uuid4()) in the signals of the DRF API Logger (if enabled).
@@ -250,6 +243,13 @@ If the tracing ID is already coming as a part of request headers, you can specif
250
243
DRF_API_LOGGER_TRACING_ID_HEADER_NAME : str = ' X_TRACING_ID' # Replace with actual header name.
251
244
```
252
245
246
+ ### API with or without Host
247
+ You can specify whether an endpoint of API should have absolute URI or not by setting this variable in the DRF settings.py file.
248
+ ``` python
249
+ DRF_API_LOGGER_PATH_TYPE = ' ABSOLUTE' # Default to ABSOLUTE if not specified
250
+ # Possible values are ABSOLUTE, FULL_PATH or RAW_URI
251
+ ```
252
+
253
253
Considering we are accessing the following URL: http://127.0.0.1:8000/api/v1/?page=123
254
254
DRF_API_LOGGER_PATH_TYPE possible values are:
255
255
1 . ABSOLUTE (Default) :
You can’t perform that action at this time.
0 commit comments