Development API¶
The development API adds endpoints to simplify actions needed to change
database state without having to restart the entire application.
The endpoints may be enabled with the DEVELOPMENT_ENDPOINTS
setting.
Configuration Settings¶
The development API needs to be explicitly enabled through settings. The API should not be enabled in any deployed scenarios.
-
DEVELOPMENT_ENDPOINTS
¶ default:
False
Whether to mount the development endpoints
Endpoints¶
-
POST
/__dev/reset-db/
¶ Restores the database to the original state with pre-populated test data
-
POST
/__dev/change-groups/
¶ Modifies the permission groups on testuser
Query Parameters: - groups – The names of the groups to add the user to separated by ,. Not including this parameter will clear all groups from the user.