OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Add OEKG Web-API & Scenario Bundle feature documentation #1480

Closed jh-RLI closed 7 months ago

jh-RLI commented 7 months ago

Description of the issue

We want to provide documentation that contains all the necessary information to understand the functions that create the scenario bundle feature.

Additionally, we want to provide the oekg Web-API documentation that shows how to query oekg and how to create scenario bundles using the Web-API by sending a json formatted request.

Ideas of solution

Scenario Bundle Code documentation

OEKG Web-API

In the compendium

General

What is documented where?

Technical information (OEP-DOCS)

Non / less technical (Compendium)

Workflow checklist

jh-RLI commented 7 months ago

@adelmemariani I had a second look at the documentation you provided and realized that we need a bit more. You provided documentation on the function that creates the scenario bundle feature on the Django side. This of course includes the functions that provide the Web API functions. The documentation is still missing information about what endpoints we have (URLs that provide the WEB API), such as a post request to schenario-bundles/add and so on. It is also necessary to know how the json request body must be structured when sending the request.

jh-RLI commented 7 months ago

The less technical documentation about the scenario bundles and oekg schema will be available in our compendium. See this issue https://github.com/OpenEnergyPlatform/organisation/issues/74

jh-RLI commented 7 months ago

Example for how to document the web-api https://oeplatform.readthedocs.io/en/latest/api.html https://user-images.githubusercontent.com/38939526/171179814-ab85e94e-4f96-49d0-a71c-32dc89215bc8.png

jh-RLI commented 7 months ago

Implemented by https://github.com/OpenEnergyPlatform/oeplatform/pull/1481