Renovus-Tech / solarec-java

GNU Affero General Public License v3.0
0 stars 1 forks source link

Adjusment on certificates related endpoints #36

Closed pferrariuy closed 7 months ago

pferrariuy commented 7 months ago

Since the calculation of certificates sales, certificates and emission is now being moved to Python ( issue .....), there is the need to update the current endpoint controllers to avoid the calculation and, instead, call the Python corresponding enpoints.

The current endpoints that need to be updated to call a Python endpoint are:

The payload will be the same as the rest of the endpoints, the ChartFilter, that will be passthrought the Python endpoint. The result of calling the new code will be the JSON returned by the Python code.

The new code will require an update to the current configuration, in order to indicate the corresponding Python server that will answer the requests:

tech.renovus.solarec.python.solarSales.url = http://...
tech.renovus.solarec.python.solarCertificate.url = http://...
tech.renovus.solarec.python.emissons.url = http://...

An issue to have created the required stat_definition records in the database, has been create at: https://github.com/Renovus-Tech/solarec-db/issues/13

pferrariuy commented 7 months ago

Tested integration with new endpoints from: https://github.com/Renovus-Tech/solarec-python/issues/17