Skip to content

Commit d70f6cd

Browse files
committed
fix: replaced api v3 in store journey
1 parent 9249f98 commit d70f6cd

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

src/content/docs/en/pages/store-journey/storage/use-bucket-as-origin.mdx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ Once the changes have been made, access `http://xxxxxxxxxx.map.azionedge.net/ind
187187
1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/):
188188

189189
```bash
190-
curl --location 'https://api.azionapi.net/edge_applications' \
191-
--header 'Accept: application/json; version=3' \
192-
--header 'Authorization: Token [TOKEN VALUE]' \
193-
--header 'Content-Type: application/json' \
190+
curl --request POST \
191+
--url https://api.azion.com/v4/edge_application/applications \
192+
--header 'Accept: application/json' \
193+
--header 'Authorization: [TOKEN VALUE]' \
194+
--header 'Content-Type: application/json' \
194195
--data '{
195196
"name": "edge storage app",
196197
"delivery_protocol": "http",
@@ -290,9 +291,10 @@ curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id
290291
10. Run the following `GET` request in your terminal to retrieve the ID of the default rule of your edge application's **Rules Engine**, replacing `<edge_application_id>` variable with the edge application ID you copied previously:
291292

292293
```bash
293-
curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id>/rules_engine/request/rules' \
294-
--header 'Accept: application/json; version=3' \
295-
--header 'Authorization: Token [TOKEN VALUE]'
294+
curl --request GET \
295+
--url "https://api.azion.com/v4/edge_application/applications/<edge_application_id>/rules?search=phase:request" \
296+
--header 'Accept: application/json' \
297+
--header 'Authorization: [TOKEN VALUE]'
296298
```
297299

298300
11. You should receive a response similar to:
@@ -326,10 +328,11 @@ curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id
326328
13. Run the following `PATCH` request to modify the default rule, replacing `<rule_id>` with the ID of the rule you retrieved in the previous step, leaving the `set_cache_policy` object the same as received in the response:
327329

328330
```bash
329-
curl --location --request PATCH 'https://api.azionapi.net/edge_applications/<edge_application_id>/rules_engine/request/rules/<rule_id>' \
330-
--header 'Accept: application/json; version=3' \
331-
--header 'Content-Type: application/json' \
332-
--header 'Authorization: Token [TOKEN VALUE]' \
331+
curl --request PATCH \
332+
--url https://api.azion.com/v4/edge_application/applications/<edge_application_id>/rules/<rule_id> \
333+
--header 'Accept: application/json' \
334+
--header 'Authorization: [TOKEN VALUE]' \
335+
--header 'Content-Type: application/json' \
333336
--data '{
334337
"behaviors": [
335338
{

src/content/docs/pt-br/pages/store-jornada/storage/usar-bucket-como-origem.mdx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ Uma vez que as alterações tenham sido feitas, acesse `http://xxxxxxxxxx.map.az
187187
1. Execute a seguinte requisição `POST` no seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/):
188188

189189
```bash
190-
curl --location 'https://api.azionapi.net/edge_applications' \
191-
--header 'Accept: application/json; version=3' \
192-
--header 'Authorization: Token [TOKEN VALUE]' \
193-
--header 'Content-Type: application/json' \
190+
curl --request POST \
191+
--url https://api.azion.com/v4/edge_application/applications \
192+
--header 'Accept: application/json' \
193+
--header 'Authorization: [TOKEN VALUE]' \
194+
--header 'Content-Type: application/json' \
194195
--data '{
195196
"name": "edge storage app",
196197
"delivery_protocol": "http",
@@ -290,9 +291,10 @@ curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id
290291
10. Execute a seguinte requisição `GET` no seu terminal para recuperar o ID da regra padrão do **Rules Engine** da sua edge application, substituindo a variável `<edge_application_id>` pelo ID da edge application que você copiou anteriormente:
291292

292293
```bash
293-
curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id>/rules_engine/request/rules' \
294-
--header 'Accept: application/json; version=3' \
295-
--header 'Authorization: Token [TOKEN VALUE]'
294+
curl --request GET \
295+
--url "https://api.azion.com/v4/edge_application/applications/<edge_application_id>/rules?search=phase:request" \
296+
--header 'Accept: application/json' \
297+
--header 'Authorization: [TOKEN VALUE]'
296298
```
297299

298300
11. Você deve receber uma resposta semelhante a esta:
@@ -326,10 +328,11 @@ curl --location 'https://api.azionapi.net/edge_applications/<edge_application_id
326328
13. Execute a seguinte requisição `PATCH` para modificar a regra padrão, substituindo `<rule_id>` pelo ID da regra que você recuperou no passo anterior, mantendo o objeto `set_cache_policy` igual ao recebido na resposta:
327329

328330
```bash
329-
curl --location --request PATCH 'https://api.azionapi.net/edge_applications/<edge_application_id>/rules_engine/request/rules/<rule_id>' \
330-
--header 'Accept: application/json; version=3' \
331-
--header 'Content-Type: application/json' \
332-
--header 'Authorization: Token [TOKEN VALUE]' \
331+
curl --request PATCH \
332+
--url https://api.azion.com/v4/edge_application/applications/<edge_application_id>/rules/<rule_id> \
333+
--header 'Accept: application/json' \
334+
--header 'Authorization: [TOKEN VALUE]' \
335+
--header 'Content-Type: application/json' \
333336
--data '{
334337
"behaviors": [
335338
{

0 commit comments

Comments
 (0)