@@ -53,10 +53,71 @@ The playground editor consists of five main sections:
53
53
The playground content automatically saves when you click the "Deploy" button or
54
54
when the editor loses focus.
55
55
56
- ## Current limitations
56
+ ## Uploading files
57
57
58
- > ⚠️ Playgrounds cannot currently be deleted.
58
+ You can upload a zip file containing files and directories to the playground by
59
+ dragging into the file browser area. The contents of the zip file will be
60
+ extracted into the playground, preserving the directory structure.
59
61
60
- > ⚠️ Playgrounds cannot currently be renamed.
62
+ > ⚠️ The playground editor does not support uploading individual files or
63
+ > directories.
64
+
65
+ ## Using the HTTP explorer
66
+
67
+ The HTTP Explorer tab in the playground allows you to make arbitrary HTTP
68
+ requests to any URL served by the playground. This is useful for testing APIs or
69
+ other services that do not serve a web page.
70
+
71
+ To use the HTTP Explorer enter the path and query parameters for the request you
72
+ want to make, select the HTTP method (GET, POST, etc.), and click on the button
73
+ labeled with the selected method.
74
+
75
+ Additional request headers can be added by clicking the "Set Headers" button.
76
+
77
+ After the response has been made, the HTTP Explorer will display the response
78
+ status, headers, and body.
79
+
80
+ To view the trace for the request, click on the "Trace" button in the response
81
+ section. This will open the request trace for the request in a drawer overtop
82
+ the playground editor. From there you can also view any ` console.log ` output
83
+ that was captured during the request.
84
+
85
+ ## Renaming a playground
86
+
87
+ You can rename a playground by editing the playground slug on the playground
88
+ settings page. This will update the default domain names associated with the
89
+ playground, as they are based on the playground slug. The new slug must be
90
+ unique within the organization (i.e. must not be in use by another app or
91
+ playground in the same organization).
92
+
93
+ ::: warning
94
+
95
+ Any previous ` deno.net ` URLs pointing to the playground will no longer work
96
+ after renaming.
97
+
98
+ Custom domains will continue to work, as they are not tied to the playground
99
+ slug.
100
+
101
+ :::
102
+
103
+ ## Deleting a playground
104
+
105
+ Playgrounds can be deleted from the playground settings page. This will remove
106
+ the playground and all its revisions from the organization. All existing
107
+ deployments will immediately stop serving traffic, and all custom domain
108
+ associations will be removed.
109
+
110
+ No traffic will be served from the playground after deletion, and it will not be
111
+ possible to access the playground or its revisions. Deleted playgrounds cannot
112
+ be restored through the Deno Deploy UI.
113
+
114
+ ::: info
115
+
116
+ Deleted a playground by mistake? Contact Deno support within 30 days to restore
117
+ it.
118
+
119
+ :::
120
+
121
+ ## Limitations
61
122
62
123
> ⚠️ Playgrounds cannot currently be transferred to another organization.
0 commit comments