Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
68 stars 23 forks source link

Component bottom-up #18

Closed da-ekchajzer closed 2 years ago

da-ekchajzer commented 2 years ago

Epic

Server

US

As an external user I can retrieve the impact of a component With the bottom-up methodology of Boavizta

Route(s) involved

/v1/component/[component]

Process

da-ekchajzer commented 2 years ago

Example of POST request body for v1/component/cpu:

{
    "core_units": 24,
    "die_size_per_core": null,
    "cpu_family": "Skylake"
}

Outputs:

{
    "gwp": 21.69087,
    "pe": 324.8315,
    "adp": 0.02040369518
}