Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuletik committed Feb 20, 2020
1 parent 6ba81b2 commit 8bebf03
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/api-guide/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,10 @@ class ExampleView(APIView):
schema = AutoSchema(operation_id_base="Custom")
```

The previous example will generate the following operationid: "ListCustoms", "RetrieveCustom", "UpdateCustom", "PartialUpdateCustom", "DestroyCustom".
The previous example will generate the following operationId: "ListCustoms", "RetrieveCustom", "UpdateCustom", "PartialUpdateCustom", "DestroyCustom".
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.

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.

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.
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:

```python
class CustomSchema(AutoSchema):
Expand Down

0 comments on commit 8bebf03

Please sign in to comment.