🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
66
stars
23
forks
source link
Provide a router with a list of accepted input for string fields #109
Closed
da-ekchajzer closed 1 year ago
Problem
It is difficult for users to determine the possible input choices in the case of open parameters.
Solution
Provide utils GET routers which returns a list of available inputs for the following fields :
CPU
family
: https://github.com/Boavizta/boaviztapi/blob/main/boaviztapi/data/components/cpu_manufacture.csvmodel_range
: https://github.com/Boavizta/boaviztapi/blob/dev/boaviztapi/data/components/cpu_index.csvRAM
manufacturer
: https://github.com/Boavizta/boaviztapi/blob/main/boaviztapi/data/components/ram_manufacture.csvDISK (ssd)
manufacturer
: https://github.com/Boavizta/boaviztapi/blob/main/boaviztapi/data/components/ssd_manufacture.csvCASE
type
: ["rack", "blade"]USAGE
usage_location
: https://github.com/Boavizta/boaviztapi/blob/dev/boaviztapi/routers/utils_router.pySERVER
archetype
: https://api.boavizta.org/docs#/server/server_get_all_archetype_name_v1_server_all_default_models_getCLOUD
instance_type
: https://api.boavizta.org/docs#/cloud/server_get_all_archetype_name_v1_cloud_aws_all_instances_get