Skip to content

Instantly share code, notes, and snippets.

@takurx
Created June 9, 2024 22:30
Show Gist options
  • Save takurx/32e514c75777a6a8876081b5216c430c to your computer and use it in GitHub Desktop.
Save takurx/32e514c75777a6a8876081b5216c430c to your computer and use it in GitHub Desktop.
try to log kong and fiware, it need domain name resolution?

log_of_kong_api_gateway-7

1. kong, set up, service, route

curl -i -s -X POST http://localhost:8001/services \
  --data name=example_service \
  --data url='http://httpbin.org'

curl -X GET http://localhost:8001/services/example_service

curl --request PATCH \
  --url localhost:8001/services/example_service \
  --data retries=6

curl -i -X POST http://localhost:8001/services/example_service/routes \
   --data 'paths[]=/mock' \
   --data name=example_route

curl -X GET http://localhost:8001/services/example_service/routes/example_route

curl -X GET http://localhost:8000/mock

1. response

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:4061/version
{"libVersion":"2.21.0","port":4041,"baseRoot":"/","version":"1.2.5"}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -s -X POST http://localhost:8001/services \
>   --data name=example_service \
>   --data url='http://httpbin.org'
HTTP/1.1 201 Created
Date: Sun, 09 Jun 2024 20:54:41 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: dd18081d2a833635f1913128ca114d40
Content-Length: 376
X-Kong-Admin-Latency: 18
Server: kong/3.7.0.0-enterprise-edition

{"name":"example_service","write_timeout":60000,"created_at":1717966481,"read_timeout":60000,"tls_verify":null,"tls_verify_depth":null,"protocol":"http","id":"fa93f569-b765-40ed-add2-3e12f3780946","connect_timeout":60000,"retries":5,"tags":null,"enabled":true,"path":null,"port":80,"ca_certificates":null,"host":"httpbin.org","client_certificate":null,"updated_at":1717966481}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8001/services/example_service
{"name":"example_service","write_timeout":60000,"created_at":1717966481,"read_timeout":60000,"tls_verify":null,"tls_verify_depth":null,"protocol":"http","id":"fa93f569-b765-40ed-add2-3e12f3780946","connect_timeout":60000,"retries":5,"tags":null,"enabled":true,"path":null,"port":80,"ca_certificates":null,"host":"httpbin.org","client_certificate":null,"updated_at":1717966481}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl --request PATCH \
>   --url localhost:8001/services/example_service \
>   --data retries=6
{"name":"example_service","write_timeout":60000,"created_at":1717966481,"read_timeout":60000,"tls_verify":null,"tls_verify_depth":null,"protocol":"http","id":"fa93f569-b765-40ed-add2-3e12f3780946","connect_timeout":60000,"retries":6,"tags":null,"enabled":true,"path":null,"port":80,"ca_certificates":null,"host":"httpbin.org","client_certificate":null,"updated_at":1717966513}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -X POST http://localhost:8001/services/example_service/routes \
>    --data 'paths[]=/mock' \
>    --data name=example_route
HTTP/1.1 201 Created
Date: Sun, 09 Jun 2024 20:55:28 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: 50d6f81cbb601d530131221e0be24432
Content-Length: 485
X-Kong-Admin-Latency: 25
Server: kong/3.7.0.0-enterprise-edition

{"name":"example_route","destinations":null,"tags":null,"preserve_host":false,"hosts":null,"protocols":["http","https"],"snis":null,"path_handling":"v0","id":"a51f9e15-32bd-4290-a7fd-b2716191f64e","request_buffering":true,"response_buffering":true,"regex_priority":0,"paths":["/mock"],"service":{"id":"fa93f569-b765-40ed-add2-3e12f3780946"},"https_redirect_status_code":426,"methods":null,"strip_path":true,"created_at":1717966528,"headers":null,"sources":null,"updated_at":1717966528}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8001/services/example_service/routes/example_route
{"name":"example_route","destinations":null,"tags":null,"preserve_host":false,"hosts":null,"protocols":["http","https"],"snis":null,"path_handling":"v0","id":"a51f9e15-32bd-4290-a7fd-b2716191f64e","request_buffering":true,"response_buffering":true,"regex_priority":0,"paths":["/mock"],"service":{"id":"fa93f569-b765-40ed-add2-3e12f3780946"},"https_redirect_status_code":426,"methods":null,"strip_path":true,"created_at":1717966528,"headers":null,"sources":null,"updated_at":1717966528}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8000/example_service/
{
  "message":"no Route matched with those values",
  "request_id":"348b5a1c2f6e5057e4fbd950fb47b467"
}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8000/example_service/mock
{
  "message":"no Route matched with those values",
  "request_id":"939a960aee325b2a48118326348ced6b"
}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8000/example_service/routes
{
  "message":"no Route matched with those values",
  "request_id":"f4170e0693bcd70e9e9ac330bdc73d2e"
}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -X POST http://localhost:8001/services/example_service/routes \
> >    --data 'paths[]=/mock' \
> >    --data name=example_route
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   274  100   274    0     0  21076      0 --:--:-- --:--:-- --:--:-- 21076
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: paths[]=
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: name=example_route
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8000/mock
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>httpbin.org</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700"
        rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/flasgger_static/swagger-ui.css">
    <link rel="icon" type="image/png" href="/static/favicon.ico" sizes="64x64 32x32 16x16" />
    <style>
        html {
            box-sizing: border-box;
            overflow: -moz-scrollbars-vertical;
            overflow-y: scroll;
        }

        *,
        *:before,
        *:after {
            box-sizing: inherit;
        }

        body {
            margin: 0;
            background: #fafafa;
        }
    </style>
</head>

<body>
    <a href="https://github.com/requests/httpbin" class="github-corner" aria-label="View source on Github">
        <svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;"
            aria-hidden="true">
            <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
            <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
                fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
            <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
                fill="currentColor" class="octo-body"></path>
        </svg>
    </a>
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
        <defs>
            <symbol viewBox="0 0 20 20" id="unlocked">
                <path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
            </symbol>

            <symbol viewBox="0 0 20 20" id="locked">
                <path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"
                />
            </symbol>

            <symbol viewBox="0 0 20 20" id="close">
                <path d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"
                />
            </symbol>

            <symbol viewBox="0 0 20 20" id="large-arrow">
                <path d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"
                />
            </symbol>

            <symbol viewBox="0 0 20 20" id="large-arrow-down">
                <path d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"
                />
            </symbol>


            <symbol viewBox="0 0 24 24" id="jump-to">
                <path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z" />
            </symbol>

            <symbol viewBox="0 0 24 24" id="expand">
                <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z" />
            </symbol>

        </defs>
    </svg>


    <div id="swagger-ui">
        <div data-reactroot="" class="swagger-ui">
            <div>
                <div class="information-container wrapper">
                    <section class="block col-12">
                        <div class="info">
                            <hgroup class="main">
                                <h2 class="title">httpbin.org
                                    <small>
                                        <pre class="version">0.9.2</pre>
                                    </small>
                                </h2>
                                <pre class="base-url">[ Base URL: httpbin.org/ ]</pre>
                            </hgroup>
                            <div class="description">
                                <div class="markdown">
                                    <p>A simple HTTP Request &amp; Response Service.
                                        <br>
                                        <br>
                                        <b>Run locally: </b>
                                        <code>$ docker run -p 80:80 kennethreitz/httpbin</code>
                                    </p>
                                </div>
                            </div>
                            <div>
                                <div>
                                    <a href="https://kennethreitz.org" target="_blank">the developer - Website</a>
                                </div>
                                <a href="mailto:me@kennethreitz.org">Send email to the developer</a>
                            </div>
                        </div>
                        <!-- ADDS THE LOADER SPINNER -->
                        <div class="loading-container">
                            <div class="loading"></div>
                        </div>

                    </section>
                </div>
            </div>
        </div>
    </div>


    <div class='swagger-ui'>
        <div class="wrapper">
            <section class="clear">
                <span style="float: right;">
                    [Powered by
                    <a target="_blank" href="https://github.com/rochacbruno/flasgger">Flasgger</a>]
                    <br>
                </span>
            </section>
        </div>
    </div>



    <script src="/flasgger_static/swagger-ui-bundle.js"> </script>
    <script src="/flasgger_static/swagger-ui-standalone-preset.js"> </script>
    <script src='/flasgger_static/lib/jquery.min.js' type='text/javascript'></script>
    <script>

        window.onload = function () {
            

            fetch("/spec.json")
                .then(function (response) {
                    response.json()
                        .then(function (json) {
                            var current_protocol = window.location.protocol.slice(0, -1);
                            if (json.schemes[0] != current_protocol) {
                                // Switches scheme to the current in use
                                var other_protocol = json.schemes[0];
                                json.schemes[0] = current_protocol;
                                json.schemes[1] = other_protocol;

                            }
                            json.host = window.location.host;  // sets the current host

                            const ui = SwaggerUIBundle({
                                spec: json,
                                validatorUrl: null,
                                dom_id: '#swagger-ui',
                                deepLinking: true,
                                jsonEditor: true,
                                docExpansion: "none",
                                apisSorter: "alpha",
                                //operationsSorter: "alpha",
                                presets: [
                                    SwaggerUIBundle.presets.apis,
                                    // yay ES6 modules ↘
                                    Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default
                                ],
                                plugins: [
                                    SwaggerUIBundle.plugins.DownloadUrl
                                ],
            
            // layout: "StandaloneLayout"  // uncomment to enable the green top header
        })

        window.ui = ui

        // uncomment to rename the top brand if layout is enabled
        // $(".topbar-wrapper .link span").replaceWith("<span>httpbin</span>");
        })
    })
}
    </script>  <div class='swagger-ui'>
    <div class="wrapper">
        <section class="block col-12 block-desktop col-12-desktop">
            <div>

                <h2>Other Utilities</h2>

                <ul>
                    <li>
                        <a href="/forms/post">HTML form</a> that posts to /post /forms/post</li>
                </ul>

                <br />
                <br />
            </div>
        </section>
    </div>
</div>
</body>

</html>chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 

2. kong, set up, service, route-1

curl -i -s -X POST http://localhost:8001/services \
  --data name=fiware_service \
  --data url='curl -X GET http://localhost:4061/version'

 curl -X GET http://localhost:8001/services/fiware_service

curl --request PATCH \
  --url localhost:8001/services/fiware_service \
  --data retries=6

curl -i -X POST http://localhost:8001/services/fiware_service/routes \
   --data 'paths[]=/fiware_mock' \
   --data name=fiware_route

curl -X GET http://localhost:8001/services/fiware_service/routes/fiware_route

curl -X GET http://localhost:8000/fiware_mock

2. compare

curl -X GET http://localhost:4061/version

2. response

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -s -X POST http://localhost:8001/services \
>   --data name=fiware_service \
>   --data url='curl -X GET http://localhost:4061/version'
HTTP/1.1 400 Bad Request
Date: Sun, 09 Jun 2024 21:01:29 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: d052bb5b562fa3275052995b6400ed72
Content-Length: 200
X-Kong-Admin-Latency: 8
Server: kong/3.7.0.0-enterprise-edition

{"fields":{"host":"required field missing","path":"should start with: /"},"message":"2 schema violations (host: required field missing; path: should start with: /)","code":2,"name":"schema violation"}

3. kong, set up, service, route-1

curl -i -s -X POST http://localhost:8001/services \
  --data name=fiware_service \
  --data url='curl -X GET http://localhost:4061'

 curl -X GET http://localhost:8001/services/fiware_service

curl --request PATCH \
  --url localhost:8001/services/fiware_service \
  --data retries=6

curl -i -X POST http://localhost:8001/services/fiware_service/routes \
   --data 'paths[]=/fiware_mock' \
   --data name=fiware_route

curl -X GET http://localhost:8001/services/fiware_service/routes/fiware_route

curl -X GET http://localhost:8000/fiware_mock/version

2. compare

curl -X GET http://localhost:4061/version

3. response

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -s -X POST http://localhost:8001/services \
>   --data name=fiware_service \
>   --data url='curl -X GET http://localhost:4061'
HTTP/1.1 400 Bad Request
Date: Sun, 09 Jun 2024 21:02:59 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: cdc90201319d3156bac5f677aae20a1e
Content-Length: 200
X-Kong-Admin-Latency: 8
Server: kong/3.7.0.0-enterprise-edition

{"fields":{"host":"required field missing","path":"should start with: /"},"message":"2 schema violations (host: required field missing; path: should start with: /)","code":2,"name":"schema violation"}

4. kong, set up, service, route-1

curl -i -s -X POST http://localhost:8001/services \
  --data name=fiware_service \
  --data url='curl -X GET http://54.238.24.118:4061/'

4. compare

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://54.238.24.118:4061/version
{"libVersion":"2.21.0","port":4041,"baseRoot":"/","version":"1.2.5"}

4. response

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -s -X POST http://localhost:8001/services \
>   --data name=fiware_service \
>   --data url='curl -X GET http://54.238.24.118:4061'
HTTP/1.1 400 Bad Request
Date: Sun, 09 Jun 2024 21:10:25 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: 5b20680bab57282075f4575e961bca0c
Content-Length: 200
X-Kong-Admin-Latency: 9
Server: kong/3.7.0.0-enterprise-edition

{"fields":{"host":"required field missing","path":"should start with: /"},"message":"2 schema violations (host: required field missing; path: should start with: /)","code":2,"name":"schema violation"}

5. kong, set up, service, route-1

curl -i -s -X POST http://localhost:8001/services \
  --data name=ale_service \
  --data url='https://api.sampleapis.com/beers/ale'

curl -X GET http://localhost:8001/services/ale_service

curl --request PATCH \
  --url localhost:8001/services/ale_service \
  --data retries=6

curl -i -X POST http://localhost:8001/services/ale_service/routes \
   --data 'paths[]=/ale_mock' \
   --data name=ale_route

curl -X GET http://localhost:8001/services/ale_service/routes/ale_route

curl -X GET http://localhost:8000/ale_mock/

curl -X GET http://localhost:8000/ale_mock/ | jq

5. compare

curl -X GET https://api.sampleapis.com/beers/ale

curl -X GET https://api.sampleapis.com/beers/ale | jq

5. responce

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -s -X POST http://localhost:8001/services \
>   --data name=ale_service \
>   --data url='curl -X GET https://api.sampleapis.com/beers/ale'
HTTP/1.1 400 Bad Request
Date: Sun, 09 Jun 2024 21:25:49 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: 6fd533017626c62d66475a28c0ab2c1e
Content-Length: 200
X-Kong-Admin-Latency: 8
Server: kong/3.7.0.0-enterprise-edition

{"fields":{"host":"required field missing","path":"should start with: /"},"message":"2 schema violations (host: required field missing; path: should start with: /)","code":2,"name":"schema violation"}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -s -X POST http://localhost:8001/services \
>   --data name=ale_service \
>   --data url='https://api.sampleapis.com/beers/ale'
HTTP/1.1 201 Created
Date: Sun, 09 Jun 2024 21:26:17 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: 3287e30067787c46cb8d71500b760a6d
Content-Length: 389
X-Kong-Admin-Latency: 18
Server: kong/3.7.0.0-enterprise-edition

{"name":"ale_service","write_timeout":60000,"created_at":1717968377,"read_timeout":60000,"tls_verify":null,"tls_verify_depth":null,"protocol":"https","id":"bebed5fe-f7a1-48fc-8c8f-e1f3d1bb911f","connect_timeout":60000,"retries":5,"tags":null,"enabled":true,"path":"/beers/ale","port":443,"ca_certificates":null,"host":"api.sampleapis.com","client_certificate":null,"updated_at":1717968377}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -i -X POST http://localhost:8001/services/ale_service/routes \
>    --data 'paths[]=/ale_mock' \
>    --data name=ale_route
HTTP/1.1 201 Created
Date: Sun, 09 Jun 2024 21:26:46 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: 1750c87bb1fbdf19e5f8aa6f61a8711d
Content-Length: 485
X-Kong-Admin-Latency: 19
Server: kong/3.7.0.0-enterprise-edition

{"name":"ale_route","destinations":null,"tags":null,"preserve_host":false,"hosts":null,"protocols":["http","https"],"snis":null,"path_handling":"v0","id":"89436220-366f-44fb-aecb-5c4fb3f21dba","request_buffering":true,"response_buffering":true,"regex_priority":0,"paths":["/ale_mock"],"service":{"id":"bebed5fe-f7a1-48fc-8c8f-e1f3d1bb911f"},"https_redirect_status_code":426,"methods":null,"strip_path":true,"created_at":1717968406,"headers":null,"sources":null,"updated_at":1717968406}chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8000/ale_mock/
[{"price":"$16.99","name":"Founders All Day IPA","rating":{"average":4.411243509154233,"reviews":453},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h00/h94/11891416367134.png","id":1},{"price":"$13.99","name":"Blue Moon Belgian White Belgian-Style Wheat Ale","rating":{"average":4.775260833383482,"reviews":305},"image":"https://www.totalwine.com/media/sys_master/twmmedia/he8/h67/11931543830558.png","id":2},{"price":"$16.99","name":"Guinness Extra Stout","rating":{"average":3.9785961474594638,"reviews":119},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h50/h90/11996630056990.png","id":3},{"price":"$8.99","name":"Guinness Extra Stout","rating":{"average":3.5135460961961718,"reviews":199},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h35/he7/11996577726494.png","id":4},{"price":"$15.49","name":"Sierra Nevada Pale Ale","rating":{"average":4.266364643483868,"reviews":414},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h19/h43/11735160193054.png","id":5},{"price":"$15.49","name":"Sierra Nevada Pale Ale","rating":{"average":3.141161723541611,"reviews":459},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h0a/h17/11589987434526.png","id":6},{"price":"$15.99","name":"Lagunitas IPA","rating":{"average":1.7610665871324303,"reviews":358},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hd2/hfd/11348869382174.png","id":7},{"price":"$11.99","name":"Dogfish Head 120-Minute IPA","rating":{"average":3.1053162095618543,"reviews":64},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hf7/h2e/8814407614494.png","id":8},{"price":"$15.49","name":"Sierra Nevada Torpedo Extra IPA","rating":{"average":1.1092369711087207,"reviews":345},"image":"https://www.totalwine.com/media/sys_master/twmmedia/ha5/h01/8799883329566.png","id":9},{"price":"$15.99","name":"Sierra Nevada Hazy Little Thing IPA","rating":{"average":3.9890785544340925,"reviews":170},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":10},{"price":"$14.99","name":"New Holland Dragon's Milk","rating":{"average":1.2005615080794012,"reviews":493},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hf1/hef/11388243083294.png","id":11},{"price":"$12.99","name":"New Belgium Oakspire Bourbon Barrel Ale","rating":{"average":2.0996330805016186,"reviews":342},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8b/h8f/11475320012830.png","id":12},{"price":"$7.49","name":"Guinness Draught","rating":{"average":1.4506545003190645,"reviews":452},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hcc/h64/11996579201054.png","id":13},{"price":"$10.99","name":"Dogfish Head 60-Minute IPA","rating":{"average":1.3770307904176358,"reviews":324},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h17/hc9/10124015599646.png","id":14},{"price":"$7.99","name":"Blue Moon Belgian White Belgian-Style Wheat Ale","rating":{"average":4.041128289991199,"reviews":50},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h5b/hff/11941592694814.png","id":15},{"price":"$16.99","name":"Guinness Draught","rating":{"average":2.9002860700543973,"reviews":401},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h66/h6a/11996634775582.png","id":16},{"price":"$10.99","name":"Weihenstephaner Hefe Weissbier","rating":{"average":2.89292945072894,"reviews":267},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h19/he2/11969419083806.png","id":17},{"price":"$2.29","name":"Cigar City Jai-Alai IPA","rating":{"average":3.779669618771213,"reviews":206},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hdb/h25/11969380712478.png","id":18},{"price":"$21.99","name":"Bell's Two Hearted Ale","rating":{"average":1.768500733899927,"reviews":63},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hfc/h84/11735172120606.png","id":19},{"price":"$12.99","name":"Kentucky Bourbon Barrel Ale","rating":{"average":2.2328898766089313,"reviews":377},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h0f/h40/11931598913566.png","id":20},{"price":"$12.99","name":"Dogfish Head 90-Minute IPA","rating":{"average":3.7771776781196387,"reviews":496},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hd0/h80/11717909905438.png","id":21},{"price":"$9.49","name":"Sierra Nevada Hazy Little Thing IPA","rating":{"average":1.4359814370189987,"reviews":351},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h42/h71/11375171207198.png","id":22},{"price":"$4.99","name":"Bell's Double Two Hearted","rating":{"average":4.268804254746469,"reviews":74},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":23},{"price":"$11.99","name":"Victory Golden Monkey Ale","rating":{"average":3.1676642120290497,"reviews":141},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hab/ha1/11849258827806.png","id":24},{"price":"$18.49","name":"Founders Underground Mountain Brown","rating":{"average":2.1446471059009395,"reviews":319},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":25},{"price":"$10.99","name":"Bell's Two Hearted Ale","rating":{"average":2.857913327526303,"reviews":440},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hd0/h7c/8813760610334.png","id":26},{"price":"$89.99","name":"Blue Moon Belgian White Belgian-Style Wheat Ale","rating":{"average":1.508525625330103,"reviews":381},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc2/he9/11975816085534.png","id":27},{"price":"$11.49","name":"Elysian Space Dust IPA","rating":{"average":1.56330286120944,"reviews":203},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h0f/hb6/11735169466398.png","id":28},{"price":"$12.49","name":"Duvel Belgian Ale","rating":{"average":2.5572486237237335,"reviews":191},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h0c/h86/8810864082974.png","id":29},{"price":"$9.99","name":"Founders Breakfast Stout","rating":{"average":2.536098631569753,"reviews":105},"image":"https://www.totalwine.com/media/sys_master/twmmedia/ha2/he2/8796687728670.png","id":30},{"price":"$16.79","name":"Founders Centennial IPA","rating":{"average":4.902598150770166,"reviews":407},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h9d/h94/11167126519838.png","id":31},{"price":"$8.99","name":"Lagunitas IPA","rating":{"average":4.599331298776508,"reviews":135},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2c/h78/8804310777886.png","id":32},{"price":"$14.99","name":"New Belgium Fat Tire","rating":{"average":1.056104104160374,"reviews":492},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hee/hb0/8809351217182.png","id":33},{"price":"$8.49","name":"Boddingtons Pub Ale","rating":{"average":1.3365664144031921,"reviews":364},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc8/h2c/8806352846878.png","id":34},{"price":"$7.99","name":"Hoegaarden Witbier Blanche","rating":{"average":3.565917975071695,"reviews":189},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h97/h48/11931669102622.png","id":35},{"price":"$9.99","name":"Lagunitas Daytime IPA","rating":{"average":3.7896243815044306,"reviews":477},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hd1/h89/11657040003102.png","id":36},{"price":"$11.49","name":"Stone IPA (India Pale Ale)","rating":{"average":1.878226983778763,"reviews":380},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h26/h91/11770094026782.png","id":37},{"price":"$9.99","name":"Spaten Franziskaner Hefe-Weisse","rating":{"average":1.9830030107855592,"reviews":223},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h25/h97/8798007754782.png","id":38},{"price":"$18.99","name":"Southern Tier Warlock Imperial Pumpkin Stout","rating":{"average":2.043941554653335,"reviews":241},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h80/h0d/10734657470494.png","id":39},{"price":"$19.99","name":"Dogfish Head 60-Minute IPA","rating":{"average":3.48129639229092,"reviews":310},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h5f/h00/10124016648222.png","id":40},{"price":"$16.99","name":"Newcastle Brown Ale","rating":{"average":1.0385809111488369,"reviews":485},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hf5/h03/11969565622302.png","id":41},{"price":"$11.49","name":"New Belgium Voodoo Ranger Imperial IPA","rating":{"average":1.030031658964159,"reviews":412},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h06/h57/10672758161438.png","id":42},{"price":"$9.99","name":"Smithwick's Irish Ale","rating":{"average":3.344299483944976,"reviews":190},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h64/had/11996577431582.png","id":43},{"price":"$19.99","name":"Stone IPA (India Pale Ale)","rating":{"average":3.679742063810279,"reviews":404},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h80/he9/10140961341470.png","id":44},{"price":"$11.49","name":"Left Hand Milk Stout Nitro","rating":{"average":1.5222183530402447,"reviews":457},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2d/haf/8813239762974.png","id":45},{"price":"$9.99","name":"Founders Porter","rating":{"average":3.7036191902784807,"reviews":247},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h37/h9f/8796760277022.png","id":46},{"price":"$14.99","name":"Shock Top Belgian White Ale","rating":{"average":4.02565627585603,"reviews":418},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hbe/h78/11891420495902.png","id":47},{"price":"$10.99","name":"Dogfish Head Slightly Mighty IPA","rating":{"average":3.518525930659723,"reviews":312},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hcd/ha2/11845581078558.png","id":48},{"price":"$15.99","name":"Founders Backwoods Bastard","rating":{"average":3.0187543429516914,"reviews":226},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8f/h35/11536035217438.png","id":49},{"price":"$16.99","name":"Goose Island IPA","rating":{"average":1.1082348289013026,"reviews":117},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb3/h9b/11444657618974.png","id":50},{"price":"$18.49","name":"Stone Farking Wheaton w00tstout","rating":{"average":3.3898938755564823,"reviews":61},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":51},{"price":"$7.99","name":"Kona Big Wave Golden Ale","rating":{"average":4.216231501611103,"reviews":253},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb9/h8e/8797338894366.png","id":52},{"price":"$10.99","name":"North Coast Old Rasputin Imperial Stout","rating":{"average":1.7226627560750893,"reviews":171},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h25/h63/11770107363358.png","id":53},{"price":"$9.99","name":"Lagunitas A Little Sumpin Sumpin","rating":{"average":3.5321444435967244,"reviews":129},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hdb/h96/10856913207326.png","id":54},{"price":"$21.49","name":"Chimay Grande Reserve Blue","rating":{"average":4.7937905748912435,"reviews":99},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8a/h92/8798154031134.png","id":55},{"price":"$13.99","name":"Ballast Point Sculpin IPA","rating":{"average":1.0633744801576714,"reviews":323},"image":"https://www.totalwine.com/media/sys_master/twmmedia/he7/hcf/11969504673822.png","id":56},{"price":"$12.99","name":"Stone Fear.Movie.Lions Double IPA","rating":{"average":4.193323291786882,"reviews":319},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h78/hdf/11797725052958.png","id":57},{"price":"$7.99","name":"New Belgium Fat Tire","rating":{"average":4.36964965425013,"reviews":440},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hfa/hc0/11805929209886.png","id":58},{"price":"$87.99","name":"New Belgium Fat Tire","rating":{"average":4.492195528374378,"reviews":83},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h5f/h1f/9781897035806.png","id":59},{"price":"$10.99","name":"New Belgium Trippel Belgian Style Ale","rating":{"average":2.6576216939051998,"reviews":389},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc7/h44/11464107982878.png","id":60},{"price":"$1.99","name":"Paulaner Hefe Weizen","rating":{"average":2.224460075596946,"reviews":87},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h7f/h64/8820569014302.png","id":61},{"price":"$10.99","name":"Dogfish Head SeaQuenchAle","rating":{"average":2.604050274543601,"reviews":62},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h60/h11/10124017303582.png","id":62},{"price":"$20.99","name":"St Bernardus Abt 12","rating":{"average":1.0089880840508387,"reviews":205},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hcc/h30/10728889778206.png","id":63},{"price":"$36.99","name":"Dogfish Head World Wide Stout","rating":{"average":1.1643783197497646,"reviews":119},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8c/h4e/10657395245086.png","id":64},{"price":"$9.99","name":"Unibroue - La Fin Du Monde","rating":{"average":2.514476444565455,"reviews":127},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8c/hcd/8800920829982.png","id":65},{"price":"$9.49","name":"Sierra Nevada Pale Ale","rating":{"average":4.017110604857885,"reviews":393},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h05/h54/11589988024350.png","id":66},{"price":"$8.99","name":"Blue Moon Mango Wheat","rating":{"average":3.7853182263516203,"reviews":58},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hed/h46/11170760327198.png","id":67},{"price":"$12.99","name":"Oskar Blues Death By Coconut","rating":{"average":2.499562698383815,"reviews":130},"image":"https://www.totalwine.com/media/sys_master/twmmedia/ha6/h87/9664767787038.png","id":68},{"price":"$16.49","name":"New Belgium Voodoo Ranger IPA","rating":{"average":1.3981363388800485,"reviews":441},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h5d/h93/10675772489758.png","id":69},{"price":"$14.99","name":"Kona Big Wave Golden Ale","rating":{"average":3.366369397953016,"reviews":370},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8a/hcc/12027169669150.png","id":70},{"price":"$8.99","name":"Guinness Foreign Extra Stout","rating":{"average":3.955232912250458,"reviews":57},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h64/h42/11996578906142.png","id":71},{"price":"$15.99","name":"Schofferhofer Hefeweizen Grapefruit","rating":{"average":2.887846830566846,"reviews":297},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb5/hd5/11358023155742.png","id":72},{"price":"$13.99","name":"Ballast Point Sculpin IPA","rating":{"average":1.4983124359520046,"reviews":53},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h54/h09/11969425702942.png","id":73},{"price":"$11.49","name":"Stone Arrogant Bastard Ale","rating":{"average":4.476922876044725,"reviews":410},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h7a/h9c/11770097860638.png","id":74},{"price":"$13.49","name":"Ballast Point Grapefruit Sculpin IPA","rating":{"average":2.2181579436694605,"reviews":130},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2e/h8e/11969407221790.png","id":75},{"price":"$9.99","name":"Oskar Blues Dale's Pale Ale","rating":{"average":1.0189692403493238,"reviews":280},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2f/h10/8804817240094.png","id":76},{"price":"$13.99","name":"Chimay Grande Reserve Blue","rating":{"average":3.3233628692606922,"reviews":90},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h43/hf5/8820567834654.png","id":77},{"price":"$17.49","name":"Boulevard Bourbon Barrel Quad","rating":{"average":3.3608031669590206,"reviews":126},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h6b/ha4/10501577375774.png","id":78},{"price":"$9.49","name":"Hofbrau Hefe Weizen","rating":{"average":3.1129695093601795,"reviews":169},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h08/h77/8816818946078.png","id":79},{"price":"$14.99","name":"Boulevard Tank 7 Farmhouse Ale","rating":{"average":2.525521586557562,"reviews":369},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h41/h0f/12021147697182.png","id":80},{"price":"$2.99","name":"Samuel Smith's Organic Chocolate Stout","rating":{"average":4.1555247865397416,"reviews":169},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h37/ha6/8803802054686.png","id":81},{"price":"$2.79","name":"Bell's Special Double Cream Stout","rating":{"average":3.682967725411885,"reviews":56},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h73/h11/8803018965022.png","id":82},{"price":"$9.99","name":"Founders Dirty Bastard Ale","rating":{"average":3.970086617125669,"reviews":72},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h6b/ha2/8806269812766.png","id":83},{"price":"$11.79","name":"Achouffe La Chouffe","rating":{"average":3.800563812674647,"reviews":151},"image":"https://www.totalwine.com/media/sys_master/twmmedia/ha0/h87/10140920315934.png","id":84},{"price":"$17.99","name":"Founders Mosaic Promise","rating":{"average":4.052128197668433,"reviews":378},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h32/hca/10698194583582.png","id":85},{"price":"$22.99","name":"Stone Delicious IPA","rating":{"average":4.437512706307549,"reviews":238},"image":"https://www.totalwine.com/media/sys_master/twmmedia/ha2/h39/12007074758686.png","id":86},{"price":"$10.99","name":"Rogue Batsquatch Hazy IPA","rating":{"average":4.502906484625454,"reviews":483},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc3/h11/11931839692830.png","id":87},{"price":"$11.49","name":"New Belgium Voodoo Ranger Juicy Haze IPA","rating":{"average":4.800191829796816,"reviews":255},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":88},{"price":"$17.99","name":"Boulevard Whiskey Barrel Stout","rating":{"average":3.7756782589755353,"reviews":180},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h69/h85/11443360235550.png","id":89},{"price":"$9.99","name":"Lagunitas Maximus IPA","rating":{"average":3.641323719494787,"reviews":493},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h45/h8f/9418350657566.png","id":90},{"price":"$12.99","name":"Offshoot Relax (It's Just a Hazy IPA)","rating":{"average":4.169674694322197,"reviews":164},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h90/h58/11311020245022.png","id":91},{"price":"$12.99","name":"Sixpoint Resin","rating":{"average":3.1029248482584535,"reviews":234},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hf5/hfb/10657396424734.png","id":92},{"price":"$99.99","name":"Cigar City Jai-Alai IPA","rating":{"average":1.0601853988027745,"reviews":485},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hdc/h98/9781940322334.png","id":93},{"price":"$12.99","name":"Wicked Weed Pernicious IPA","rating":{"average":1.3267940892543262,"reviews":234},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":94},{"price":"$12.99","name":"Dogfish Head SuperEIGHT","rating":{"average":2.4587302813711283,"reviews":191},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":95},{"price":"$6.99","name":"Rochefort 10 Trappist Ale","rating":{"average":2.6243993844011806,"reviews":303},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hcc/h4a/8803981787166.png","id":96},{"price":"$18.99","name":"Delirium Tremens","rating":{"average":4.2526903890313905,"reviews":463},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h05/ha0/8804687970334.png","id":97},{"price":"$8.99","name":"Lagunitas SuperCluster","rating":{"average":4.969725976340016,"reviews":59},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":98},{"price":"$12.99","name":"New Holland Dragon's Milk White Stout","rating":{"average":2.62207680296948,"reviews":66},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":99},{"price":"$7.99","name":"Goose Island IPA","rating":{"average":4.002017823140871,"reviews":323},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h39/h7f/9985249247262.png","id":100},{"price":"$13.49","name":"Ballast Point Grapefruit Sculpin IPA","rating":{"average":2.924150050325185,"reviews":66},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h14/h10/11969425997854.png","id":101},{"price":"$1.79","name":"Sierra Nevada Torpedo Extra IPA","rating":{"average":4.132209648216585,"reviews":86},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h88/h47/8796708962334.png","id":102},{"price":"$10.99","name":"Duclaw Sweet Baby Jesus!","rating":{"average":4.089769886898315,"reviews":402},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb1/h21/9351707328542.png","id":103},{"price":"$16.99","name":"Lagunitas Sumpin' Easy","rating":{"average":1.3485746897254929,"reviews":334},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h29/h71/11312566894622.png","id":104},{"price":"$12.99","name":"Lord Hobo Boom Sauce","rating":{"average":4.271835995644435,"reviews":102},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h28/h24/11544524718110.png","id":105},{"price":"$12.99","name":"Weihenstephaner Vitus","rating":{"average":1.3135036691160673,"reviews":469},"image":"https://www.totalwine.com/media/sys_master/twmmedia/he4/hd0/11969417609246.png","id":106},{"price":"$12.79","name":"New Belgium Voodoo Ranger Juicifer IPA","rating":{"average":3.9492021918949725,"reviews":236},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":107},{"price":"$12.99","name":"Lindeman's Framboise","rating":{"average":2.7519071827960273,"reviews":108},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":108},{"price":"$14.99","name":"Dogfish Head Palo Santo Marron","rating":{"average":2.4190073235744673,"reviews":75},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hbe/h3c/10225139908638.png","id":109},{"price":"$15.49","name":"Clown Shoes Space Cake","rating":{"average":4.883356891746129,"reviews":367},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":110},{"price":"$9.99","name":"Bell's Best Brown Ale","rating":{"average":2.6802502419403025,"reviews":406},"image":"https://www.totalwine.com/media/sys_master/twmmedia/heb/h89/8815740649502.png","id":111},{"price":"$11.99","name":"Victory Golden Monkey Ale","rating":{"average":3.223867503577261,"reviews":257},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2e/h20/11849258532894.png","id":112},{"price":"$8.99","name":"Erdinger Weissbier","rating":{"average":3.9267369526916545,"reviews":78},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h61/hda/8820602109982.png","id":113},{"price":"$10.99","name":"Robinsons Trooper Ale","rating":{"average":3.834032592144709,"reviews":338},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h42/hf3/10675674120222.png","id":114},{"price":"$3.99","name":"Kentucky Coffee Barrel Stout","rating":{"average":1.335718639280703,"reviews":416},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h25/h7f/11931443626014.png","id":115},{"price":"$9.99","name":"21st Amendment Brew Free Or Die Blood Orange IPA","rating":{"average":4.894730680324359,"reviews":230},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h7d/had/11170752692254.png","id":116},{"price":"$9.49","name":"Kronenbourg Blanc","rating":{"average":2.7826152662684214,"reviews":304},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8c/ha4/9354116857886.png","id":117},{"price":"$10.99","name":"Bell's Official Hazy IPA","rating":{"average":4.4548183643373855,"reviews":480},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":118},{"price":"$8.99","name":"Cigar City Maduro Brown","rating":{"average":2.6831070228729246,"reviews":474},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8f/heb/11589816057886.png","id":119},{"price":"$20.99","name":"Gulden Draak 9000 Quadrupel","rating":{"average":2.7633099153167375,"reviews":359},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h71/h01/8800490422302.png","id":120},{"price":"$10.99","name":"Bell's Two Hearted Ale","rating":{"average":3.086009671445667,"reviews":499},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":121},{"price":"$9.99","name":"Sierra Nevada Hop Bullet","rating":{"average":4.606551938913049,"reviews":409},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":122},{"price":"$8.99","name":"Sweetwater 420 Strain G-13","rating":{"average":4.176603737571783,"reviews":371},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":123},{"price":"$19.99","name":"Tripel Karmeliet","rating":{"average":3.5888947699078804,"reviews":378},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h7f/h6e/8797892739102.png","id":124},{"price":"$8.49","name":"New Belgium Voodoo Ranger IPA","rating":{"average":4.107273030523367,"reviews":93},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2c/h7e/10508834045982.png","id":125},{"price":"$92.99","name":"Kona Big Wave Golden Ale","rating":{"average":1.4034451390194747,"reviews":443},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h90/hfb/9687556685854.png","id":126},{"price":"$9.99","name":"Heavy Seas Loose Cannon IPA","rating":{"average":4.2247057118155755,"reviews":189},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hba/h54/11931504771102.png","id":127},{"price":"$9.49","name":"Newcastle Brown Ale","rating":{"average":1.3062165130061514,"reviews":122},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h2e/he3/10072387780638.png","id":128},{"price":"$15.99","name":"Ommegang Three Philosophers","rating":{"average":3.7650339790702576,"reviews":271},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h39/h4a/9382849708062.png","id":129},{"price":"$7.49","name":"Shock Top Belgian White Ale","rating":{"average":3.5245058222634285,"reviews":262},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hf6/h53/11891418136606.png","id":130},{"price":"$19.49","name":"Duchesse De Bourgogne","rating":{"average":3.7854120339206645,"reviews":115},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h1d/h1c/8804202479646.png","id":131},{"price":"$9.49","name":"New Belgium Fat Tire Belgian White","rating":{"average":3.079965625452034,"reviews":160},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb5/hd4/11698320834590.png","id":132},{"price":"$10.49","name":"Cigar City Guayabera Citra Pale Ale","rating":{"average":4.146664357611568,"reviews":416},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h4a/h12/11401918382110.png","id":133},{"price":"$13.99","name":"Dogfish Head American Beauty","rating":{"average":2.1059576853999387,"reviews":64},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc1/hc4/11797694316574.png","id":134},{"price":"$11.49","name":"Old Speckled Hen","rating":{"average":2.3637872222112417,"reviews":187},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h18/h7e/8804595925022.png","id":135},{"price":"$10.99","name":"Samuel Smith's Oatmeal Stout","rating":{"average":3.755651312235952,"reviews":231},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hf4/h32/8802976104478.png","id":136},{"price":"$1.99","name":"Foster's Special Bitter","rating":{"average":3.345153453413597,"reviews":456},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hd3/hf0/11941521293342.png","id":137},{"price":"$8.99","name":"Kona Hanalei Island IPA","rating":{"average":3.861066233750919,"reviews":59},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc4/h25/9947401158686.png","id":138},{"price":"$12.99","name":"Gaffel Kolsch","rating":{"average":3.5860968066070953,"reviews":446},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h4d/h45/8804792565790.png","id":139},{"price":"$9.99","name":"Left Hand Milk Stout Nitro","rating":{"average":4.726783116573011,"reviews":236},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h13/hcc/10950394413086.png","id":140},{"price":"$8.99","name":"Paulaner Hefe Weizen","rating":{"average":2.290946882490756,"reviews":55},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":141},{"price":"$11.49","name":"Stone Tangerine Express IPA","rating":{"average":2.4853029525964736,"reviews":185},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h44/h41/12007072989214.png","id":142},{"price":"$15.99","name":"Samuel Adams Rebel IPA","rating":{"average":2.8238527317268174,"reviews":383},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h4f/h71/8807125319710.png","id":143},{"price":"$8.49","name":"Bass Ale","rating":{"average":4.05017330128582,"reviews":374},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h83/he6/11931937210398.png","id":144},{"price":"$20.49","name":"Chimay Premiere Red","rating":{"average":3.240237215285262,"reviews":79},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8c/hec/8804559716382.png","id":145},{"price":"$11.99","name":"Duvel Tripel Hop","rating":{"average":1.7576812202358694,"reviews":357},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h47/h64/10126441840670.png","id":146},{"price":"$11.99","name":"Tripel Karmeliet","rating":{"average":2.0935730249494418,"reviews":428},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h92/h87/8820300283934.png","id":147},{"price":"$11.99","name":"Rogue Hazelnut Brown Nectar","rating":{"average":1.9354656518898867,"reviews":259},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h53/hf1/11139791421470.png","id":148},{"price":"$19.99","name":"Chimay Cinq Cents White Triple","rating":{"average":3.750476125324088,"reviews":184},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb8/h2f/8804746330142.png","id":149},{"price":"$8.99","name":"Cigar City Florida Cracker Belgian-style White Ale","rating":{"average":3.6242276941091225,"reviews":113},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h33/h59/11589816352798.png","id":150},{"price":"$12.99","name":"New Belgium Honey Orange Tripel","rating":{"average":4.180322318620529,"reviews":408},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h03/h93/11375132606494.png","id":151},{"price":"$14.79","name":"Dogfish Head Flesh and Blood IPA","rating":{"average":3.250643535696838,"reviews":385},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hdd/hba/10124016943134.png","id":152},{"price":"$17.99","name":"Bell's Expedition Stout","rating":{"average":3.717992549497703,"reviews":404},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h60/hb2/8800955105310.png","id":153},{"price":"$11.49","name":"Duchesse De Bourgogne","rating":{"average":2.524190913111866,"reviews":262},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h8f/h1d/8801000161310.png","id":154},{"price":"$14.99","name":"Westmalle Tripel Trappist Ale","rating":{"average":2.209130924062644,"reviews":129},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hb1/hd1/8798192369694.png","id":155},{"price":"$3.99","name":"Weihenstephaner HefeWeissbier Dark","rating":{"average":3.434066764526942,"reviews":374},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h43/h4b/10734629224478.png","id":156},{"price":"$8.99","name":"Fuller's London Pride","rating":{"average":4.788464936323404,"reviews":465},"image":"https://www.totalwine.com/media/sys_master/twmmedia/had/h2c/9770875682846.png","id":157},{"price":"$16.49","name":"SweetWater 420 Pale Ale","rating":{"average":1.5438991712581398,"reviews":144},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h38/h5f/11508996374558.png","id":158},{"price":"$16.99","name":"Sweetwater 420 Strain G-13","rating":{"average":4.032524982682152,"reviews":370},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":159},{"price":"$9.99","name":"Lagunitas Hop Stoopid Ale","rating":{"average":2.0824476203303357,"reviews":468},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h59/hc4/11213336576030.png","id":160},{"price":"$114.99","name":"Dogfish Head 60-Minute IPA","rating":{"average":1.630334145085353,"reviews":311},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h52/h71/9789269934110.png","id":161},{"price":"$9.99","name":"Founders All Day IPA","rating":{"average":4.008025403767698,"reviews":441},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h13/hd3/11891418726430.png","id":162},{"price":"$8.49","name":"Unibroue - La Fin Du Monde","rating":{"average":2.8047611369349283,"reviews":470},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h74/h43/8804124753950.png","id":163},{"price":"$15.99","name":"Oskar Blues Ten FIDY","rating":{"average":2.9788154999137637,"reviews":436},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hc1/h8e/11465945481246.png","id":164},{"price":"$10.99","name":"Anderson Valley GOSE Blood Orange","rating":{"average":3.1066752148241683,"reviews":288},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h4a/h43/11635363905566.png","id":165},{"price":"$12.49","name":"Lindeman's Peche","rating":{"average":3.0755646338784075,"reviews":138},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h3a/hf0/8810013884446.png","id":166},{"price":"$12.49","name":"Stone Scorpion Bowl IPA","rating":{"average":2.733436034499219,"reviews":339},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h49/h76/11443412828190.png","id":167},{"price":"$15.99","name":"Dogfish Head Burton Baton","rating":{"average":3.926503869642703,"reviews":86},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hae/haf/10124015304734.png","id":168},{"price":"$14.99","name":"Boulevard The Calling IPA","rating":{"average":1.5012371833611837,"reviews":93},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hec/hc3/11192440225822.png","id":169},{"price":"$4.99","name":"Delirium Red","rating":{"average":3.329751337964476,"reviews":385},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":170},{"price":"$1.99","name":"Karbach Love Street Summer","rating":{"average":4.620266818178933,"reviews":185},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h47/hf1/10777645285406.png","id":171},{"price":"$11.99","name":"Einstok Icelandic White Ale","rating":{"average":4.81471460936719,"reviews":58},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h66/h62/11234593931294.png","id":172},{"price":"$9.99","name":"Dogfish Head 90-Minute IPA","rating":{"average":3.8590704317769315,"reviews":120},"image":"https://www.totalwine.com/media/sys_master/cmsmedia/hff/h0e/8979036078110.png","id":173},{"price":"$10.99","name":"Anderson Valley Briney Melon Gose","rating":{"average":1.6308706827038444,"reviews":215},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h0b/hbe/11635387465758.png","id":174},{"price":"$8.99","name":"Boulevard Space Camper Cosmic IPA","rating":{"average":1.0521580970660143,"reviews":214},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hff/h26/11735207706654.png","id":175},{"price":"$17.99","name":"Piraat Ale","rating":{"average":4.94233495501944,"reviews":185},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h67/he1/9071469920286.png","id":176},{"price":"$6.49","name":"Lindeman's Framboise","rating":{"average":3.749494609725903,"reviews":321},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h6e/h57/10225140629534.png","id":177},{"price":"$13.99","name":"Blue Moon Belgian White Belgian-Style Wheat Ale","rating":{"average":2.323260489551802,"reviews":132},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h54/h53/11931543535646.png","id":178},{"price":"$9.99","name":"Founders All Day IPA","rating":{"average":5,"reviews":462},"image":"https://www.totalwine.com/media/sys_master/twmmedia/hcb/h02/11891413352478.png","id":179},{"price":"$11.99","name":"Chimay Cinq Cents White Triple","rating":{"average":1.997464538301898,"reviews":89},"image":"https://www.totalwine.com/media/sys_master/twmmedia/h67/h22/8801543749662.png","id":180}]chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ curl -X GET http://localhost:8000/ale_mock/ | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 36815  100 36815    0     0  49952      0 --:--:-- --:--:-- --:--:-- 49952
[
  {
    "price": "$16.99",
    "name": "Founders All Day IPA",
    "rating": {
      "average": 4.411243509154233,
      "reviews": 453
    },
    "image": "https://www.totalwine.com/media/sys_master/twmmedia/h00/h94/11891416367134.png",
    "id": 1
  },
  {
    "price": "$13.99",
    "name": "Blue Moon Belgian White Belgian-Style Wheat Ale",
    "rating": {
      "average": 4.775260833383482,
      "reviews": 305
    },
......
......
  {
    "price": "$11.99",
    "name": "Chimay Cinq Cents White Triple",
    "rating": {
      "average": 1.997464538301898,
      "reviews": 89
    },
    "image": "https://www.totalwine.com/media/sys_master/twmmedia/h67/h22/8801543749662.png",
    "id": 180
  }
]
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822/IoTagent-LoRaWAN$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment