diff --git a/Middleware/src/main/resources/static/home.html b/Middleware/src/main/resources/static/home.html index b7e0e686..f0bbda49 100644 --- a/Middleware/src/main/resources/static/home.html +++ b/Middleware/src/main/resources/static/home.html @@ -1,131 +1,467 @@ - + Date: 2025-09-05 + + Update: Updated landing page + Author: Sikandar Ejaz + Since: 2006-06-04 --> - - + - CITYdata Landing Page - - + + CITYdata Middleware + + + +
- - -

Welcome to CITYdata

-

- CITYdata, as a part of the TOOLS4CITIES tool suite, is a powerful middleware application for accessing and analyzing city-related data from different sources.
CITYData enables users to perform operations on data via the abstractions of Runner and Producer. -

- -
-

API Examples

- -
-

Python Examples

- - -
-
- - - - HttpGetAsync.py - -
-

-import json
-import requests
-
-if __name__ == "__main__":
-    base_url = "https://ngci.encs.concordia.ca/citydata"
-    route = "/apply/async/"
-    runnerId = "1da07690-e42d-4944-b3fb-030bd2aef7be"
-
-    res = requests.get(url=base_url + route + runnerId)
-    print(res.text)
-            
-
- - -
-
- - - - HttpPostAsync.py - -
-

-import json
-import requests
-
-if __name__ == "__main__":
-    base_url = "https://ngci.encs.concordia.ca/citydata"
-    route = "/apply/async"
-    data = json.dumps({
-        "use": "ca.concordia.encs.citydata.producers.EnergyConsumptionProducer",
-        "withParams": [
-            {
-                "name": "city",
-                "value": "montreal"
-            }
-        ],
-        "apply": [
-            {
-                "name": "ca.concordia.encs.citydata.operations.StringFilterOperation",
-                "withParams": [
-                    {
-                        "name": "filterBy",
-                        "value": "09:45:00"
-                    }
-                ]
-            }
-        ]
-    })
-    res = requests.post(url=base_url + route, data=data)
-    print(res.text)
-            
-
-
- -
- For more info, visit our - - GitHub page - -
- - - - - + +
+ + + +

Welcome to CITYdata

+ +

+ CITYdata, part of the + + TOOLS4CITIES + + tool suite, is a middleware platform for accessing, integrating, and analyzing city-related data from diverse sources. + Through the abstractions of Producers and Runners, CITYdata enables users to retrieve, + transform, and process urban datasets in a scalable and extensible manner. +

+ +
+ + + Query Examples + + + + Code Examples + + +
+ +
+ +
+ +

+ Public API Routes +

+ +
+ +
+ +
GET
+ +
+ 🔗 /operations/list +
+ +
+ Click to list all available operations. +
+ +
+ +
+ +
GET
+ +
+ 🔗 /producers/list +
+ +
+ Click to list all available producers. +
+ +
+ +
+ +
GET
+ +
+ 🔗 /api/datasets/list +
+ +
+ Click to list all available datasets. +
+ +
+ +
+ +
+ + + + + + + + + + + + + \ No newline at end of file