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

Đang mở
#234 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
11
Fork
11
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CAVISE/OpenCDA

Tất cả issue của CAVISE/OpenCDA

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.