sudo curl -Ls https://get.konghq.com/quickstart | sudo bash
curl -X GET http://54.238.24.118:4061/version
chino@chino-Legion-5-15IAH7H:~$ curl -X GET http://54.238.24.118:4061/version
{"libVersion":"2.21.0","port":4041,"baseRoot":"/","version":"1.2.5"}
3. though kong, and route
curl -i -s -X POST http://localhost:8001/services \
--data name=fiware_service \
--data url='http://54.238.24.118:4061/'
curl -X GET http://localhost:8001/services/fiware_service
curl --request PATCH \
--url localhost:8001/services/fiware_service \
--data retries=6
curl -X GET http://localhost:8001/services/fiware_service
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
chino@chino-Legion-5-15IAH7H:~$ curl -i -s -X POST http://localhost:8001/services \
> --data name=fiware_service \
> --data url='http://54.238.24.118:4061/'
HTTP/1.1 201 Created
Date: Sun, 16 Jun 2024 15:11:29 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: f7b8f11c614adb60104cd151082d5b7e
Content-Length: 378
X-Kong-Admin-Latency: 132
Server: kong/3.7.0.0-enterprise-edition
{"connect_timeout":60000,"read_timeout":60000,"host":"54.238.24.118","enabled":true,"path":"/","protocol":"http","id":"29fa7443-1447-47be-bb53-d054c8be62eb","retries":5,"client_certificate":null,"updated_at":1718550689,"write_timeout":60000,"tags":null,"created_at":1718550689,"ca_certificates":null,"port":4061,"tls_verify":null,"name":"fiware_service","tls_verify_depth":null}chino@chino-Legion-5-15IAH7H:~$
chino@chino-Legion-5-15IAH7H:~$ curl -X GET http://localhost:8001/services/fiware_service
{"connect_timeout":60000,"read_timeout":60000,"host":"54.238.24.118","enabled":true,"path":"/","protocol":"http","id":"29fa7443-1447-47be-bb53-d054c8be62eb","retries":5,"client_certificate":null,"updated_at":1718550689,"write_timeout":60000,"tags":null,"created_at":1718550689,"ca_certificates":null,"port":4061,"tls_verify":null,"name":"fiware_service","tls_verify_depth":null}chino@chino-Legion-5-15IAH7H:~$
chino@chino-Legion-5-15IAH7H:~$ curl --request PATCH \
> --url localhost:8001/services/fiware_service \
> --data retries=6
{"connect_timeout":60000,"read_timeout":60000,"host":"54.238.24.118","enabled":true,"path":"/","protocol":"http","id":"29fa7443-1447-47be-bb53-d054c8be62eb","retries":6,"client_certificate":null,"updated_at":1718550740,"write_timeout":60000,"tags":null,"created_at":1718550689,"ca_certificates":null,"port":4061,"tls_verify":null,"name":"fiware_service","tls_verify_depth":null}chino@chino-Legion-5-15IAH7H:~$
chino@chino-Legion-5-15IAH7H:~$ curl -X GET http://localhost:8001/services/fiware_service
{"connect_timeout":60000,"read_timeout":60000,"host":"54.238.24.118","enabled":true,"path":"/","protocol":"http","id":"29fa7443-1447-47be-bb53-d054c8be62eb","retries":6,"client_certificate":null,"updated_at":1718550740,"write_timeout":60000,"tags":null,"created_at":1718550689,"ca_certificates":null,"port":4061,"tls_verify":null,"name":"fiware_service","tls_verify_depth":null}chino@chino-Legion-5-15IAH7H:~$
chino@chino-Legion-5-15IAH7H:~$ curl -i -X POST http://localhost:8001/services/fiware_service/routes \
> --data 'paths[]=/fiware_mock' \
> --data name=fiware_route
HTTP/1.1 201 Created
Date: Sun, 16 Jun 2024 15:12:36 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Request-ID: c6c8ca6c04fabf1a8b25f6684750fd4a
Content-Length: 491
X-Kong-Admin-Latency: 24
Server: kong/3.7.0.0-enterprise-edition
{"headers":null,"preserve_host":false,"strip_path":true,"hosts":null,"created_at":1718550756,"service":{"id":"29fa7443-1447-47be-bb53-d054c8be62eb"},"request_buffering":true,"id":"d2372af2-204d-4a22-a4db-0c96e3a18bfa","name":"fiware_route","regex_priority":0,"https_redirect_status_code":426,"snis":null,"updated_at":1718550756,"protocols":["http","https"],"sources":null,"destinations":null,"path_handling":"v0","response_buffering":true,"paths":["/fiware_mock"],"methods":null,"tags":null}chino@chino-Legion-5-15IAH7H:~$
chino@chino-Legion-5-15IAH7H:~$ curl -X GET http://localhost:8001/services/fiware_service/routes/fiware_route
{"headers":null,"preserve_host":false,"strip_path":true,"hosts":null,"created_at":1718550756,"service":{"id":"29fa7443-1447-47be-bb53-d054c8be62eb"},"request_buffering":true,"id":"d2372af2-204d-4a22-a4db-0c96e3a18bfa","name":"fiware_route","regex_priority":0,"https_redirect_status_code":426,"snis":null,"updated_at":1718550756,"protocols":["http","https"],"sources":null,"destinations":null,"path_handling":"v0","response_buffering":true,"paths":["/fiware_mock"],"methods":null,"tags":null}chino@chino-Legion-5-15IAH7H:~$
chino@chino-Legion-5-15IAH7H:~$ curl -X GET http://localhost:8000/fiware_mock/version
{"libVersion":"2.21.0","port":4041,"baseRoot":"/","version":"1.2.5"}