Skip to content

Commit 8bebf03

Browse files
committed
docs
1 parent 6ba81b2 commit 8bebf03

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/api-guide/schemas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,10 @@ class ExampleView(APIView):
230230
schema = AutoSchema(operation_id_base="Custom")
231231
```
232232

233-
The previous example will generate the following operationid: "ListCustoms", "RetrieveCustom", "UpdateCustom", "PartialUpdateCustom", "DestroyCustom".
233+
The previous example will generate the following operationId: "ListCustoms", "RetrieveCustom", "UpdateCustom", "PartialUpdateCustom", "DestroyCustom".
234+
You need to provide the singular form of he operation name. For the list operation, a "s" will be appended at the end of the operation.
234235

235-
You need to provide the singular form of he operation name. For the list operation, a "s" will be append at the end of the name.
236-
237-
If you need more configuration over the `operationId` field, you can override the `get_operation_id_base` and `get_operation_id` methods from the `AutoSchema` class.
236+
If you need more configuration over the `operationId` field, you can override the `get_operation_id_base` and `get_operation_id` methods from the `AutoSchema` class:
238237

239238
```python
240239
class CustomSchema(AutoSchema):

0 commit comments

Comments
 (0)