[api] Expose available services, attacks, models and scenarios

Abierto
#234 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api

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 their requirements;
  • 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CAVISE/OpenCDA

Todos los issues de CAVISE/OpenCDA

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.