Retrieve list of dishes in an order
curl --request GET \
--url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishesimport requests
url = "https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes")
.asString();require 'uri'
require 'net/http'
url = URI("https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "674d0bf5c28b69001f8e03a1",
"created_at": "2024-04-22T10:00:00Z",
"name": "Risotto alla Milanese",
"description": "A description of the resource.",
"category": "Main Course",
"image_name": "burger",
"ingredients": [
{
"ingredient_id": "66294b2a4475a41f3e709bc5",
"is_essential": true
},
{
"ingredient_id": "66294b2a4475a41f3e709bc6",
"is_essential": true
},
{
"ingredient_id": "66294b2a4475a41f3e709bc7",
"is_essential": false
}
],
"preparation_time": 999,
"price": 999,
"station": "hot"
}
],
"total_results": 1
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}Orders
Retrieve list of dishes in an order
Retrieve the list of dishes included in an order along with the dish details.
Each object in the array includes the individual properties of the dishes. The expeditor will use the category, station, and preparation_time values to prioritize dish preparation and send to the appropriate station displays. The station prep will use the list of ingredients during their preparation of the dsih.
GET
/
orders
/
{id}
/
dishes
Retrieve list of dishes in an order
curl --request GET \
--url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishesimport requests
url = "https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes")
.asString();require 'uri'
require 'net/http'
url = URI("https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id}/dishes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "674d0bf5c28b69001f8e03a1",
"created_at": "2024-04-22T10:00:00Z",
"name": "Risotto alla Milanese",
"description": "A description of the resource.",
"category": "Main Course",
"image_name": "burger",
"ingredients": [
{
"ingredient_id": "66294b2a4475a41f3e709bc5",
"is_essential": true
},
{
"ingredient_id": "66294b2a4475a41f3e709bc6",
"is_essential": true
},
{
"ingredient_id": "66294b2a4475a41f3e709bc7",
"is_essential": false
}
],
"preparation_time": 999,
"price": 999,
"station": "hot"
}
],
"total_results": 1
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}{
"title": "Human-readable error title.",
"detail": "Human-readable error details."
}