Skip to content

Commit d8fce04

Browse files
committed
Add notes
1 parent beee0fd commit d8fce04

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

README.ja.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ git checkout NGSI-v2
267267
ドポイントに POST リクエストを行うことで、新しいサブスクリプションを追加できます
268268
:
269269
270-
#### :one: リクエスト :
270+
#### 1️⃣ リクエスト :
271271
272272
```console
273273
curl -iX POST \
@@ -341,7 +341,7 @@ function broadcastEvents(req, item, types) {
341341
ビールのボトルの価格を 0.89 ユーロに下げましょう。これはプログラムではまだできま
342342
せんので、次のように curl コマンドを使用して実行する必要があります :
343343

344-
#### :two: リクエスト :
344+
#### 2️⃣ リクエスト :
345345

346346
```console
347347
curl -iX PUT \
@@ -403,7 +403,7 @@ curl -iX PUT \
403403
以下で、アイテムがストア 001 にあることをテストします。これは、他のストアが通知
404404
によって邪魔されないようにビジネス・ロジックを設定できることを意味します。
405405

406-
#### :three: リクエスト :
406+
#### 3️⃣ リクエスト :
407407

408408
次のコマンドは、ストア 001 の在庫不足通知です :
409409

@@ -429,7 +429,7 @@ curl -iX POST \
429429
}'
430430
```
431431

432-
#### :four: リクエスト :
432+
#### 4️⃣ リクエスト :
433433

434434
次のコマンドは、ストア 002 の在庫不足通知です :
435435

@@ -522,7 +522,7 @@ POST レスポンスのヘッダに返されると自動的に生成されます
522522
POST リクエストが `http://tutorial:3000/subscription/price-change endpoint` エン
523523
ドポイントに送信されることが記載されています。
524524
525-
#### :five: リクエスト :
525+
#### 5️⃣ リクエスト :
526526
527527
```console
528528
curl -iX POST \
@@ -558,7 +558,7 @@ curl -iX POST \
558558
サブスクリプションは、`/v2/subscriptions/<subscription-id>` エンドポイントに
559559
DELETE リクエストを行うことで削除できます。
560560

561-
#### :six: リクエスト :
561+
#### 6️⃣ リクエスト :
562562

563563
```console
564564
curl -X DELETE \
@@ -575,7 +575,7 @@ curl -X DELETE \
575575
サブスクリプションを更新して、`/v2/subscriptions/<subscription-id>` エンドポイン
576576
トへの PATCH リクエストを行うことができます。
577577

578-
#### :seven: リクエスト :
578+
#### 7️⃣ リクエスト :
579579

580580
```console
581581
curl -iX PATCH \
@@ -601,7 +601,7 @@ curl -iX PATCH \
601601
各サブスクリプションの通知セクションには、サブスクリプションの条件が最後に満たさ
602602
れた時刻、および POST アクションが成功したかどうかが含まれます。
603603

604-
#### :eight: リクエスト :
604+
#### 8️⃣ リクエスト :
605605

606606
```console
607607
curl -X GET \
@@ -621,7 +621,7 @@ curl -X GET \
621621
サブスクリプションの詳細は、`/v2/subscriptions/<subscription-id>` エンドポイント
622622
に GET リクエストを行うことで読み取ることができます。
623623

624-
#### :nine: リクエスト :
624+
#### 9️⃣ リクエスト :
625625

626626
```console
627627
curl -X GET \

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ git checkout NGSI-v2
178178
This command will also import seed data from the previous
179179
[Stock Management example](https://github.com/FIWARE/tutorials.Context-Providers) on startup.
180180

181-
> :information_source: **Note:** If you want to clean up and start over again you can do so with the following command:
181+
> [!NOTE]
182+
> If you want to clean up and start over again you can do so with the following command:
182183
>
183184
> ```console
184185
> ./services stop
@@ -210,7 +211,7 @@ frequently so this would be a waste of resources and create a lot of unnecessary
210211
The alternative is to create a subscription which will POST a payload to a "well-known" URL whenever a price has
211212
changed. A new subscription can be added by making a POST request to the `/v2/subscriptions/` endpoint as shown below:
212213
213-
#### :one: Request:
214+
#### 1️⃣ Request:
214215
215216
```console
216217
curl -iX POST \
@@ -278,7 +279,7 @@ the product prices remain the same - for example apples remain at 0.99€
278279
Let's reduce the price of apples to 0.89€. This can't be done programmatically yet, so it has to be done with a curl
279280
command as shown:
280281

281-
#### :two: Request:
282+
#### 2️⃣ Request:
282283

283284
```console
284285
curl -iX PUT \
@@ -328,7 +329,7 @@ The subscription is tested whenever the `shelfCount` of an **InventoryItem** is
328329
`"q": "shelfCount<10;refStore==urn:ngsi-ld:Store:001` tests that the `shelfCount` is below ten and that the item is in
329330
store 001. This means that we can set up our business logic so that other stores wont be bothered by notifications.
330331

331-
#### :three: Request:
332+
#### 3️⃣ Request:
332333

333334
The following command is a low stock notification for Store 001
334335

@@ -354,7 +355,7 @@ curl -iX POST \
354355
}'
355356
```
356357

357-
#### :four: Request:
358+
#### 4️⃣ Request:
358359

359360
The following command is a low stock notification for Store 002
360361

@@ -435,7 +436,7 @@ Product entity is altered.
435436
The notification section of the body states that a POST request containing all affected entities will be sent to the
436437
`http://tutorial:3000/subscription/price-change` endpoint.
437438
438-
#### :five: Request:
439+
#### 5️⃣ Request:
439440
440441
```console
441442
curl -iX POST \
@@ -467,7 +468,7 @@ This example deletes the Subscription with `id=5ae079b86e4f353c5163c939` from th
467468

468469
Subscriptions can be deleted by making a DELETE request to the `/v2/subscriptions/<subscription-id>` endpoint.
469470

470-
#### :six: Request:
471+
#### 6️⃣ Request:
471472

472473
```console
473474
curl -X DELETE \
@@ -480,7 +481,7 @@ This example amends an existing subscription with the ID `5ae07c7e6e4f353c5163c9
480481

481482
Subscriptions can be updated making a PATCH request to the `/v2/subscriptions/<subscription-id>` endpoint.
482483

483-
#### :seven: Request:
484+
#### 7️⃣ Request:
484485

485486
```console
486487
curl -iX PATCH \
@@ -503,7 +504,7 @@ This example lists all subscriptions by making a GET request to the `/v2/subscri
503504
The notification section of each subscription will also include the last time the conditions of the subscription were
504505
met, and whether associated the POST action was successful.
505506

506-
#### :eight: Request:
507+
#### 8️⃣ Request:
507508

508509
```console
509510
curl -X GET \
@@ -519,7 +520,7 @@ subscription were met, and whether associated the POST action was successful.
519520

520521
Subscription details can be read by making a GET request to the `/v2/subscriptions/<subscription-id>` endpoint.
521522

522-
#### :nine: Request:
523+
#### 9️⃣ Request:
523524

524525
```console
525526
curl -X GET \

0 commit comments

Comments
 (0)