[api] Expose available services, attacks, models and scenarios
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start by reading the existing API and the related #209 status snapshot, then inspect default.yaml, opencda/core/application/behavior/services/, adversary_framework/attacks/, the CoP model assets, and the SUMO assets directory. Add GET /v1/capabilities to report the version and requested available resources with their parameters or requirements. Done when the endpoint returns those node-specific lists and configuration data for clients to use.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem or motivation
A client that builds configs needs to know what the node supports: the default.yaml its config is merged with, behavior service types and their parameters, attacks and their requirements, CoP models and SUMO scenarios. None of this is available through the API; capabilities in the #209 status snapshot is an empty list.
Scenario Manager hardcodes these lists in its UI, so they drift from the OpenCDA version deployed on the node.
Proposed solution
Add GET /v1/capabilities that returns:
- the OpenCDA version and the contents of
default.yaml; - behavior service types from
opencda/core/application/behavior/services/with their parameters; - attack names from
adversary_framework/attacks/with theirrequirements; - CoP model ids available on the node;
- scenario names in the SUMO assets directory.
Area
Scenario management
Additional context
Related to #209.
- Lenguaje dominante
- Python
- Estrellas
- 11
- Forks
- 11
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CAVISE/OpenCDA
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
[attacks_research] Research additional service-level attacks for AttackFrameworkPosiblemente ocupada @Austin610 la tomó hace 16 días. Abiertoenhancement
CAVISE/OpenCDA#218 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de CAVISE/OpenCDA
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
-
frontend testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
vendrabuck/HERD#1588 ·
Los mantenedores suelen responder en 1 día
-
Lessons: record the second case of L14 (security updates cover only pip)Posiblemente ocupada @vishwanathj la tomó hoy. Abiertoarea/docs no-test-needed type/docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vishwanathj/ocp_lab.ai#39 · 1 comentario ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
laaielichter/Gulliver#228 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
nyjc-computing/campus#1338 ·
Los mantenedores suelen responder en 1 día