Skip to content

Commit bd77346

Browse files
committed
Use appropriate Content-Type header in examples (#1325)
1 parent 0d4e4c0 commit bd77346

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

content/nic/installation/integrations/app-protect-waf-v5/compile-waf-policies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ In the same directory you created `simple-policy.json`, create a POST request fo
5656
```shell
5757
curl -X POST https://{{NMS_FQDN}}/api/platform/v1/security/policies \
5858
-H "Authorization: Bearer <access token>" \
59+
-H "Content-Type: application/json" \
5960
-d @simple-policy.json
6061
```
6162

@@ -122,6 +123,7 @@ Send a POST request to create the bundle through the API:
122123
```shell
123124
curl -X POST https://{{NMS_FQDN}}/api/platform/v1/security/policies/bundles \
124125
-H "Authorization: Bearer <access token>" \
126+
-H "Content-Type: application/json" \
125127
-d @security-policy-bundles.json
126128
```
127129

content/nim/nginx-app-protect/manage-waf-security-policies.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ For example:
8686
```shell
8787
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies \
8888
-H "Authorization: Bearer <access token>" \
89+
-H "Content-Type: application/json" \
8990
-d @ignore-xss-example.json
9091
```
9192

@@ -146,6 +147,7 @@ To use `POST`, include the policy metadata and content in your request:
146147
```shell
147148
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies?isNewRevision=true \
148149
-H "Authorization: Bearer <access token>" \
150+
-H "Content-Type: application/json" \
149151
-d @update-xss-policy.json
150152
```
151153

@@ -161,7 +163,7 @@ Then include the UID in your PUT request:
161163
```shell
162164
curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/policies/<policy-uid> \
163165
-H "Authorization: Bearer <access token>" \
164-
--Content-Type application/json \
166+
-H "Content-Type application/json" \
165167
-d @update-xss-policy.json
166168
```
167169

@@ -241,6 +243,7 @@ Example:
241243
```shell
242244
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies/bundles \
243245
-H "Authorization: Bearer <access token>" \
246+
-H "Content-Type: application/json" \
244247
-d @security-policy-bundles.json
245248
```
246249

@@ -484,6 +487,7 @@ Example:
484487
```shell
485488
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles \
486489
-H "Authorization: Bearer <access token>" \
490+
-H "Content-Type: application/json" \
487491
-d @default-log-example.json
488492
```
489493

@@ -537,6 +541,7 @@ To create a new revision:
537541
```shell
538542
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles?isNewRevision=true \
539543
-H "Authorization: Bearer <access token>" \
544+
-H "Content-Type: application/json" \
540545
-d @update-default-log.json
541546
```
542547

@@ -547,7 +552,7 @@ To overwrite an existing security log profile:
547552
```shell
548553
curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/<log-profile-uid> \
549554
-H "Authorization: Bearer <access token>" \
550-
--Content-Type application/json \
555+
-H "Content-Type application/json" \
551556
-d @update-log-profile.json
552557
```
553558

@@ -556,7 +561,7 @@ To overwrite an existing security log profile:
556561
```shell
557562
curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/<log-profile-uid> \
558563
-H "Authorization: Bearer <access token>" \
559-
--Content-Type application/json \
564+
-H "Content-Type: application/json" \
560565
-d @update-log-profile.json
561566
```
562567

@@ -608,6 +613,7 @@ Example:
608613
```shell
609614
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/publish \
610615
-H "Authorization: Bearer <access token>" \
616+
-H "Content-Type: application/json" \
611617
-d @publish-request.json
612618
```
613619

0 commit comments

Comments
 (0)