You've already forked The-API-Book
mirror of
https://github.com/twirl/The-API-Book.git
synced 2025-06-12 22:17:33 +02:00
Merge pull request #39 from bamboo2panda/gh-pages
Добавлены скобки в offers
This commit is contained in:
docs
src
@ -1131,7 +1131,7 @@ The invalid price error is resolvable: a client could obtain a new price offer a
|
|||||||
"coffee-machine": { "id", "brand", "type" },
|
"coffee-machine": { "id", "brand", "type" },
|
||||||
// Route data
|
// Route data
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Recipe data
|
// Recipe data
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Recipe specific options
|
// Recipe specific options
|
||||||
@ -1141,7 +1141,7 @@ The invalid price error is resolvable: a client could obtain a new price offer a
|
|||||||
// Pricing
|
// Pricing
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …]
|
}, …]
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@ -2000,7 +2000,7 @@ POST /v1/orders
|
|||||||
"coffee-machine": { "id", "brand", "type" },
|
"coffee-machine": { "id", "brand", "type" },
|
||||||
// Route data
|
// Route data
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Recipe data
|
// Recipe data
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Recipe specific options
|
// Recipe specific options
|
||||||
@ -2010,7 +2010,7 @@ POST /v1/orders
|
|||||||
// Pricing
|
// Pricing
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …],
|
}, …],
|
||||||
"cursor"
|
"cursor"
|
||||||
}
|
}
|
||||||
|
@ -1133,7 +1133,7 @@ app.display(offers);
|
|||||||
// Как добраться
|
// Как добраться
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
// Предложения напитков
|
// Предложения напитков
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Рецепт
|
// Рецепт
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Данные относительно того,
|
// Данные относительно того,
|
||||||
@ -1144,7 +1144,7 @@ app.display(offers);
|
|||||||
// Цена
|
// Цена
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …]
|
}, …]
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@ -2004,7 +2004,7 @@ POST /v1/orders
|
|||||||
// Как добраться
|
// Как добраться
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
// Предложения напитков
|
// Предложения напитков
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Рецепт
|
// Рецепт
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Данные относительно того,
|
// Данные относительно того,
|
||||||
@ -2015,7 +2015,7 @@ POST /v1/orders
|
|||||||
// Цена
|
// Цена
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …]
|
}, …]
|
||||||
"cursor"
|
"cursor"
|
||||||
}
|
}
|
||||||
|
@ -257,7 +257,7 @@ Let's try to group it together:
|
|||||||
"coffee-machine": { "id", "brand", "type" },
|
"coffee-machine": { "id", "brand", "type" },
|
||||||
// Route data
|
// Route data
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Recipe data
|
// Recipe data
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Recipe specific options
|
// Recipe specific options
|
||||||
@ -267,7 +267,7 @@ Let's try to group it together:
|
|||||||
// Pricing
|
// Pricing
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …]
|
}, …]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -23,7 +23,7 @@ POST /v1/offers/search
|
|||||||
"coffee-machine": { "id", "brand", "type" },
|
"coffee-machine": { "id", "brand", "type" },
|
||||||
// Route data
|
// Route data
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Recipe data
|
// Recipe data
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Recipe specific options
|
// Recipe specific options
|
||||||
@ -33,7 +33,7 @@ POST /v1/offers/search
|
|||||||
// Pricing
|
// Pricing
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …],
|
}, …],
|
||||||
"cursor"
|
"cursor"
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ POST /v1/orders
|
|||||||
// Как добраться
|
// Как добраться
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
// Предложения напитков
|
// Предложения напитков
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Рецепт
|
// Рецепт
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Данные относительно того,
|
// Данные относительно того,
|
||||||
@ -277,7 +277,7 @@ POST /v1/orders
|
|||||||
// Цена
|
// Цена
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …]
|
}, …]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -24,7 +24,7 @@ POST /v1/offers/search
|
|||||||
// Как добраться
|
// Как добраться
|
||||||
"route": { "distance", "duration", "location_tip" },
|
"route": { "distance", "duration", "location_tip" },
|
||||||
// Предложения напитков
|
// Предложения напитков
|
||||||
"offers": {
|
"offers": [{
|
||||||
// Рецепт
|
// Рецепт
|
||||||
"recipe": { "id", "name", "description" },
|
"recipe": { "id", "name", "description" },
|
||||||
// Данные относительно того,
|
// Данные относительно того,
|
||||||
@ -35,7 +35,7 @@ POST /v1/offers/search
|
|||||||
// Цена
|
// Цена
|
||||||
"pricing": { "currency_code", "price", "localized_price" },
|
"pricing": { "currency_code", "price", "localized_price" },
|
||||||
"estimated_waiting_time"
|
"estimated_waiting_time"
|
||||||
}
|
}, …]
|
||||||
}, …]
|
}, …]
|
||||||
"cursor"
|
"cursor"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user