Added documentation for energy demand
This commit is contained in:
parent
fdd4a31ac0
commit
bc76ac86d1
@ -342,6 +342,59 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ApiResponse'
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
/v1.4/energy-demand/{city_id}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- energy-demand
|
||||||
|
summary: Get energy demand
|
||||||
|
description: Retrieve energy demand data
|
||||||
|
operationId: getEnergyDemand
|
||||||
|
parameters:
|
||||||
|
- in: header
|
||||||
|
name: appId
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: the Id of the application access this API
|
||||||
|
- in: path
|
||||||
|
name: city_id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: true
|
||||||
|
description: Numeric ID of the city to get
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Successfully retrieved energy demand data
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/EnergyDemand'
|
||||||
|
'400':
|
||||||
|
description: Bad Request
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
'403':
|
||||||
|
description: Forbidden
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
'401':
|
||||||
|
description: Unauthorized
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
'500':
|
||||||
|
description: Internal server error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
security:
|
||||||
|
- BearerAuth: [ ]
|
||||||
/v1.4/construction/{city_id}:
|
/v1.4/construction/{city_id}:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
@ -713,7 +766,6 @@ components:
|
|||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
$ref: '#components/schemas/Layers'
|
$ref: '#components/schemas/Layers'
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- building_names
|
- building_names
|
||||||
- extra_loses_due_to_thermal_bridges
|
- extra_loses_due_to_thermal_bridges
|
||||||
@ -822,6 +874,25 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
EnergyDemand:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
heating_demand:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
cooling_demand:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
lighting_demand:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
appliances_demand:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
Login:
|
Login:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
Loading…
Reference in New Issue
Block a user