Closed pferrariuy closed 2 months ago
Information of SDG's of a locatino added to json:
{
"location": {
"id": 1,
"code": "Domus",
"name": "Domus",
"address": "Canelones, Uruguay",
"state": "Canelones",
"country": null,
"latitude": -34.72479331729543,
"longitude": -55.96117827152553,
"outputCapacity": 50.0,
"outputTotalCapacity": 50.0,
"referenceDensity": 1.0,
"type": "solar",
"demoDate": null,
"dataDefinitionId": 1,
"dataDefinition": null,
"stations": null,
"generators": null,
"sdgs": [
{
"code": "SDG 1",
"name": "No poverty ",
"description": "Descirption SDG for location",
"selected": null
}
]
}
Feature Request
Description
Craete the required code to work with SDG (https://github.com/Renovus-Tech/solarec/issues/9).
Expected Behavior
Create all required Vo, Dao and Interfaces in order to implement basic CRUD operations over the SDG table and table that link SDH and Locations.
Additional Context
Currently no endpoint is requering the information, how over the following methods should return the SDG related to the location
GET /api/rest/admin/locations/{id}
GET /api/rest/security/authenticate/current
Impact on Existing Features
The request impacts directly the featuer request #33, since from the location administration page, should be possible to see all the SDG, select which to link and add a description.
Related Issues