The docs say you can set trailing_slash=False but how can you allow both endpoints to work, with or without a trailing slash?
trailing_slash=False
You can also override this setting by passing a trailing_slash argument to the SimpleRouter constructor as follows:
trailing_slash
SimpleRouter
from rest_framework import routers router = routers.SimpleRouter(trailing_slash=False)