Skip to content

Commit e45485e

Browse files
committed
Fix examples waiting for component update
1 parent 067fce3 commit e45485e

File tree

1 file changed

+35
-32
lines changed

1 file changed

+35
-32
lines changed

src/content/docs/page-shield/reference/page-shield-api.mdx

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,15 @@ This `GET` request fetches a list of scripts detected by Page Shield on hostname
115115

116116
By default, the response will only include scripts with `active` status when you do not specify a `status` filter parameter in the URL query string.
117117

118-
TODO. Fix example.
119-
120-
<APIRequest path="/zones/{zone_id}/page_shield/scripts" method="GET" />
121-
122-
```bash
123-
curl "https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/scripts?hosts=example.net&page=1&per_page=15" \
124-
--header "Authorization: Bearer <API_TOKEN>"
125-
```
118+
<APIRequest
119+
path="/zones/{zone_id}/page_shield/scripts"
120+
parameters={{
121+
hosts: "example.net",
122+
page: "1",
123+
per_page: "15",
124+
}}
125+
method="GET"
126+
/>
126127

127128
```json output
128129
{
@@ -172,14 +173,16 @@ For details on the available filtering, paging, and sorting parameters, refer to
172173

173174
This `GET` request fetches a list of infrequently reported scripts on hostname `example.net`, requesting the first page with 15 items per page. The URL query string includes filtering and paging parameters.
174175

175-
TODO. Fix example.
176-
177-
<APIRequest path="/zones/{zone_id}/page_shield/scripts" method="GET" />
178-
179-
```bash
180-
curl "https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/scripts?status=infrequent&hosts=example.net&page=1&per_page=15" \
181-
--header "Authorization: Bearer <API_TOKEN>"
182-
```
176+
<APIRequest
177+
path="/zones/{zone_id}/page_shield/scripts"
178+
parameters={{
179+
status: "infrequent",
180+
hosts: "example.net",
181+
page: "1",
182+
per_page: "15",
183+
}}
184+
method="GET"
185+
/>
183186

184187
```json output
185188
{
@@ -291,14 +294,14 @@ This `GET` request fetches a list of connections detected by Page Shield, reques
291294

292295
By default, the response will only include connections with `active` status when you do not specify a `status` filter parameter in the URL query string.
293296

294-
TODO. Fix example.
295-
296-
<APIRequest path="/zones/{zone_id}/page_shield/connections" method="GET" />
297-
298-
```bash
299-
curl "https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/connections?page=1&per_page=15" \
300-
--header "Authorization: Bearer <API_TOKEN>"
301-
```
297+
<APIRequest
298+
path="/zones/{zone_id}/page_shield/connections"
299+
parameters={{
300+
page: "1",
301+
per_page: "15",
302+
}}
303+
method="GET"
304+
/>
302305

303306
```json output
304307
{
@@ -376,14 +379,14 @@ This `GET` request fetches a list of cookies detected by Page Shield, requesting
376379

377380
By default, the response will only include cookies with `active` status when you do not specify a `status` filter parameter in the URL query string.
378381

379-
TODO. Fix example.
380-
381-
<APIRequest path="/zones/{zone_id}/page_shield/cookies" method="GET" />
382-
383-
```bash
384-
curl "https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/cookies?page=1&per_page=15" \
385-
--header "Authorization: Bearer <API_TOKEN>"
386-
```
382+
<APIRequest
383+
path="/zones/{zone_id}/page_shield/cookies"
384+
parameters={{
385+
page: "1",
386+
per_page: "15",
387+
}}
388+
method="GET"
389+
/>
387390

388391
```json output
389392
{

0 commit comments

Comments
 (0)