mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
realm/playground: Add API endpoint for deleting a playground entry.
Similar to the previous commit, we have added a `do_*` function
which does the deletion from the DB. The next commit handles sending
the events when both adding and deleting a playground entry.
Added the openAPI format data to zulip.yaml for DELETE
/realm/playgrounds/{playground_id}. Also added python and curl
examples to remove-playground.md.
Tests added.
This commit is contained in:
@@ -121,7 +121,7 @@ from zerver.views.realm_export import delete_realm_export, export_realm, get_rea
|
||||
from zerver.views.realm_icon import delete_icon_backend, get_icon_backend, upload_icon
|
||||
from zerver.views.realm_linkifiers import create_linkifier, delete_linkifier, list_linkifiers
|
||||
from zerver.views.realm_logo import delete_logo_backend, get_logo_backend, upload_logo
|
||||
from zerver.views.realm_playgrounds import add_realm_playground
|
||||
from zerver.views.realm_playgrounds import add_realm_playground, delete_realm_playground
|
||||
from zerver.views.registration import (
|
||||
accounts_home,
|
||||
accounts_home_from_multiuse_invite,
|
||||
@@ -271,6 +271,7 @@ v1_api_and_json_patterns = [
|
||||
rest_path("realm/filters/<int:filter_id>", DELETE=delete_linkifier),
|
||||
# realm/playgrounds -> zerver.views.realm_playgrounds
|
||||
rest_path("realm/playgrounds", POST=add_realm_playground),
|
||||
rest_path("realm/playgrounds/<int:playground_id>", DELETE=delete_realm_playground),
|
||||
# realm/profile_fields -> zerver.views.custom_profile_fields
|
||||
rest_path(
|
||||
"realm/profile_fields",
|
||||
|
||||
Reference in New Issue
Block a user