✨(backend) add API endpoint to create children for a document
We add a POST method to the existing children endpoint.
This commit is contained in:
committed by
Anthony LC
parent
7ff4bc457f
commit
1d0386d9b5
@@ -8,7 +8,8 @@ from rest_framework import permissions
|
||||
from core.models import DocumentAccess, RoleChoices
|
||||
|
||||
ACTION_FOR_METHOD_TO_PERMISSION = {
|
||||
"versions_detail": {"DELETE": "versions_destroy", "GET": "versions_retrieve"}
|
||||
"versions_detail": {"DELETE": "versions_destroy", "GET": "versions_retrieve"},
|
||||
"children": {"GET": "children_list", "POST": "children_create"},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user