Skip to content

Commit ab292a5

Browse files
Update README.md
1 parent 3486184 commit ab292a5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,6 @@ DRF_API_LOGGER_MAX_REQUEST_BODY_SIZE = 1024 # default to -1, no limit.
221221
DRF_API_LOGGER_MAX_RESPONSE_BODY_SIZE = 1024 # default to -1, no limit.
222222
```
223223

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-
231224
### Tracing
232225
You can enable tracing by specifying `DRF_API_LOGGER_ENABLE_TRACING` in settings.py.
233226
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
250243
DRF_API_LOGGER_TRACING_ID_HEADER_NAME: str = 'X_TRACING_ID' # Replace with actual header name.
251244
```
252245

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+
253253
Considering we are accessing the following URL: http://127.0.0.1:8000/api/v1/?page=123
254254
DRF_API_LOGGER_PATH_TYPE possible values are:
255255
1. ABSOLUTE (Default) :

0 commit comments

Comments
 (0)