From 2598b736003410b44b6758170340b3ad55962985 Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 3 Aug 2022 18:32:54 +0300 Subject: [PATCH 1/2] Added square brackets to offers. --- docs/API.en.html | 8 ++++---- docs/API.ru.html | 8 ++++---- src/en/clean-copy/02-Section I. The API Design/04.md | 4 ++-- src/en/clean-copy/02-Section I. The API Design/06.md | 4 ++-- src/ru/clean-copy/02-Раздел I. Проектирование API/04.md | 4 ++-- src/ru/clean-copy/02-Раздел I. Проектирование API/06.md | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/API.en.html b/docs/API.en.html index 7f6f98b..128cbb0 100644 --- a/docs/API.en.html +++ b/docs/API.en.html @@ -1131,7 +1131,7 @@ The invalid price error is resolvable: a client could obtain a new price offer a "coffee-machine": { "id", "brand", "type" }, // Route data "route": { "distance", "duration", "location_tip" }, - "offers": { + "offers": [{ // Recipe data "recipe": { "id", "name", "description" }, // Recipe specific options @@ -1141,7 +1141,7 @@ The invalid price error is resolvable: a client could obtain a new price offer a // Pricing "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …] } @@ -2000,7 +2000,7 @@ POST /v1/orders "coffee-machine": { "id", "brand", "type" }, // Route data "route": { "distance", "duration", "location_tip" }, - "offers": { + "offers": [{ // Recipe data "recipe": { "id", "name", "description" }, // Recipe specific options @@ -2010,7 +2010,7 @@ POST /v1/orders // Pricing "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …], "cursor" } diff --git a/docs/API.ru.html b/docs/API.ru.html index 9c371f3..8fe3a12 100644 --- a/docs/API.ru.html +++ b/docs/API.ru.html @@ -1133,7 +1133,7 @@ app.display(offers); // Как добраться "route": { "distance", "duration", "location_tip" }, // Предложения напитков - "offers": { + "offers": [{ // Рецепт "recipe": { "id", "name", "description" }, // Данные относительно того, @@ -1144,7 +1144,7 @@ app.display(offers); // Цена "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …] } @@ -2004,7 +2004,7 @@ POST /v1/orders // Как добраться "route": { "distance", "duration", "location_tip" }, // Предложения напитков - "offers": { + "offers": [{ // Рецепт "recipe": { "id", "name", "description" }, // Данные относительно того, @@ -2015,7 +2015,7 @@ POST /v1/orders // Цена "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …] "cursor" } diff --git a/src/en/clean-copy/02-Section I. The API Design/04.md b/src/en/clean-copy/02-Section I. The API Design/04.md index f8ace35..ec9af0c 100644 --- a/src/en/clean-copy/02-Section I. The API Design/04.md +++ b/src/en/clean-copy/02-Section I. The API Design/04.md @@ -257,7 +257,7 @@ Let's try to group it together: "coffee-machine": { "id", "brand", "type" }, // Route data "route": { "distance", "duration", "location_tip" }, - "offers": { + "offers": [{ // Recipe data "recipe": { "id", "name", "description" }, // Recipe specific options @@ -267,7 +267,7 @@ Let's try to group it together: // Pricing "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …] } ``` diff --git a/src/en/clean-copy/02-Section I. The API Design/06.md b/src/en/clean-copy/02-Section I. The API Design/06.md index 7e21249..6d6fe67 100644 --- a/src/en/clean-copy/02-Section I. The API Design/06.md +++ b/src/en/clean-copy/02-Section I. The API Design/06.md @@ -23,7 +23,7 @@ POST /v1/offers/search "coffee-machine": { "id", "brand", "type" }, // Route data "route": { "distance", "duration", "location_tip" }, - "offers": { + "offers": [{ // Recipe data "recipe": { "id", "name", "description" }, // Recipe specific options @@ -33,7 +33,7 @@ POST /v1/offers/search // Pricing "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …], "cursor" } diff --git a/src/ru/clean-copy/02-Раздел I. Проектирование API/04.md b/src/ru/clean-copy/02-Раздел I. Проектирование API/04.md index cce164a..67e3b05 100644 --- a/src/ru/clean-copy/02-Раздел I. Проектирование API/04.md +++ b/src/ru/clean-copy/02-Раздел I. Проектирование API/04.md @@ -266,7 +266,7 @@ POST /v1/orders // Как добраться "route": { "distance", "duration", "location_tip" }, // Предложения напитков - "offers": { + "offers": [{ // Рецепт "recipe": { "id", "name", "description" }, // Данные относительно того, @@ -277,7 +277,7 @@ POST /v1/orders // Цена "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …] } ``` diff --git a/src/ru/clean-copy/02-Раздел I. Проектирование API/06.md b/src/ru/clean-copy/02-Раздел I. Проектирование API/06.md index 5ec4394..7262200 100644 --- a/src/ru/clean-copy/02-Раздел I. Проектирование API/06.md +++ b/src/ru/clean-copy/02-Раздел I. Проектирование API/06.md @@ -24,7 +24,7 @@ POST /v1/offers/search // Как добраться "route": { "distance", "duration", "location_tip" }, // Предложения напитков - "offers": { + "offers": [{ // Рецепт "recipe": { "id", "name", "description" }, // Данные относительно того, @@ -35,7 +35,7 @@ POST /v1/offers/search // Цена "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - } + }, …] }, …] "cursor" } From 7f3e9bc815d6027fddfc887854e126fb153bdec5 Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 3 Aug 2022 18:41:24 +0300 Subject: [PATCH 2/2] Extra space character --- docs/API.en.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.en.html b/docs/API.en.html index 128cbb0..ba02ce5 100644 --- a/docs/API.en.html +++ b/docs/API.en.html @@ -2010,7 +2010,7 @@ POST /v1/orders // Pricing "pricing": { "currency_code", "price", "localized_price" }, "estimated_waiting_time" - }, …] + }, …] }, …], "cursor" }