Correct swagger definition.

This commit is contained in:
Guille Gutierrez 2023-03-13 15:01:46 -04:00
parent aa76eff3ab
commit 5fc9678f14

View File

@ -155,7 +155,7 @@ paths:
cities: cities:
type: object type: object
description: Cities list description: Cities list
example: { "cities": [ { "city_1": [ "building_1", "building_2" ] }, { "city_2": [ "building_3", "building_8" ] } ] } example: { "cities": [{ "Montreal current status": ["149_part_0_zone_0", "1_part_0_zone_0"]}]}
tags: tags:
- Buildings monthly energy balance meb - Buildings monthly energy balance meb
summary: Retrieve the monthly energy balance results for the given buildings in the given cities summary: Retrieve the monthly energy balance results for the given buildings in the given cities
@ -231,197 +231,104 @@ components:
example: 'succeed' example: 'succeed'
results: results:
type: object type: object
example: '{"results":[ example: '{
{ "result":"succeed",
"city_1":{ "results":{
"building_1":{ "Montreal current status":[
"insel meb":[ {
{ "insel meb":[
"monthly_cooling":{ {
"0":381853.821, "monthly_cooling":{
"1":484038.818, "0":381853.821,
"2":944923.8890000001, "1":484038.818,
"3":1465614.6200000001, "2":944923.8890000001,
"4":2816751.71, "3":1465614.62,
"5":4673754.8800000008, "4":2816751.71,
"6":5804651.8600000003, "5":4673754.880000001,
"7":5113784.1799999997, "6":5804651.86,
"8":2464006.1000000001, "7":5113784.18,
"9":1113856.5699999998, "8":2464006.1,
"10":588973.45, "9":1113856.5699999998,
"11":384227.386 "10":588973.45,
} "11":384227.386
}, }
{ },
"yearly_cooling":{ {
"0":26236437.2839999981 "yearly_cooling":{
} "0":26236437.283999998
}, }
{ },
"monthly_heating":{ {
"0":23752326.1999999993, "monthly_heating":{
"1":20536490.1999999993, "0":23752326.2,
"2":16533607.4000000004, "1":20536490.2,
"3":8818033.1999999993, "2":16533607.4,
"4":4036963.8700000001, "3":8818033.2,
"5":915646.973, "4":4036963.87,
"6":247277.222, "5":915646.973,
"7":393324.463, "6":247277.222,
"8":3161278.3199999998, "7":393324.463,
"9":8418375.9800000004, "8":3161278.32,
"10":13028175.8000000007, "9":8418375.98,
"11":21456785.1999999993 "10":13028175.8,
} "11":21456785.2
}, }
{ },
"yearly_heating":{ {
"0":121298284.8279999942 "yearly_heating":{
} "0":121298284.828
} }
] }
}, ],
"building_2":{ "building":"149_part_0_zone_0"
"insel meb":[ },
{ {
"monthly_cooling":{ "insel meb":[
"0":3933853.0300000003, {
"1":6749044.9199999999, "monthly_cooling":{
"2":12275707.0, "0":783396.606,
"3":15125280.3000000007, "1":1044300.2899999999,
"4":26189175.8000000007, "2":1839283.69,
"5":38539007.799999997, "3":2594479.49,
"6":44865269.5, "4":4809622.07,
"7":42056718.8000000045, "5":7720497.56,
"8":25809910.1999999993, "6":9451286.13,
"9":12112115.1999999993, "7":8666059.57,
"10":5266305.1800000006, "8":4576645.510000001,
"11":3209882.3200000003 "9":2222742.19,
} "10":1180251.0999999999,
}, "11":759023.5599999999
{ }
"yearly_cooling":{ },
"0":236132270.0499999821 {
} "yearly_cooling":{
}, "0":45647587.766
{ }
"monthly_heating":{ },
"0":113151477.0, {
"1":93304132.8000000119, "monthly_heating":{
"2":67498476.599999994, "0":33584593.800000004,
"3":27459867.1999999993, "1":28801277.3,
"4":5259281.25, "2":23248582.0,
"5":0.0, "3":12622207.0,
"6":0.0, "4":5935129.39,
"7":0.0, "5":1533334.23,
"8":2118999.02, "6":541973.145,
"9":23991584.0, "7":763742.676,
"10":51830328.1000000015, "8":4608120.61,
"11":101332000.0 "9":11964252.9,
} "10":18499837.9,
}, "11":30418062.5
{ }
"yearly_heating":{ },
"0":485946145.9700000286 {
} "yearly_heating":{
} "0":172521113.451
] }
} }
} ],
}, "building":"1_part_0_zone_0"
{ }
"city_2":{ ]
"building_3":{ }
"insel meb":[ }'
{
"monthly_cooling":{
"0":1578142.8200000001,
"1":2491265.8700000001,
"2":4727943.8499999996,
"3":6648524.4100000001,
"4":12431965.8000000007,
"5":19330369.1000000015,
"6":22776884.8000000007,
"7":20448914.1000000015,
"8":11097510.7000000011,
"9":4935220.21,
"10":2247389.1600000001,
"11":1359069.3400000001
}
},
{
"yearly_cooling":{
"0":110073200.1600000113
}
},
{
"monthly_heating":{
"0":72041921.900000006,
"1":60658929.700000003,
"2":44862808.599999994,
"3":18590554.6999999993,
"4":3827654.3000000003,
"5":0.0,
"6":0.0,
"7":0.0,
"8":1737131.3500000001,
"9":16673425.8000000007,
"10":33768804.700000003,
"11":64228359.3999999985
}
},
{
"yearly_heating":{
"0":316389590.4499999881
}
}
]
},
"building_8":{
"insel meb":[
{
"monthly_cooling":{
"0":5984383.79,
"1":10543410.2000000011,
"2":20726748.0,
"3":25846933.6000000015,
"4":45066343.8000000045,
"5":65456738.299999997,
"6":74869429.6999999881,
"7":68197765.599999994,
"8":40489652.3000000045,
"9":18421974.6000000015,
"10":7668864.2600000007,
"11":4755506.3499999996
}
},
{
"yearly_cooling":{
"0":388027750.5000000596
}
},
{
"monthly_heating":{
"0":140609547.0,
"1":114809766.0,
"2":80985742.1999999881,
"3":32549675.8000000007,
"4":6437626.9500000002,
"5":0.0,
"6":0.0,
"7":0.0,
"8":2923770.5099999998,
"9":29677375.0,
"10":64619625.0,
"11":126441602.0
}
},
{
"yearly_heating":{
"0":599054730.4600000381
}
}
]
}
}
}
]}'