1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-05-31 22:09:37 +02:00

Merge pull request #39 from bamboo2panda/gh-pages

Добавлены скобки в offers
This commit is contained in:
Sergey Konstantinov 2022-08-03 23:54:23 +03:00 committed by GitHub
commit 3a99022cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 16 deletions

View File

@ -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"
}
}, …]
}, …]
}
</code></pre>
@ -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"
}

View File

@ -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"
}
}, …]
}, …]
}
</code></pre>
@ -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"
}

View File

@ -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"
}
}, …]
}, …]
}
```

View File

@ -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"
}

View File

@ -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"
}
}, …]
}, …]
}
```

View File

@ -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"
}