Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

server/app/interfaces/repository.py: Implement missing `/submodels/{submodelIdentifier}` endpoints

Đã đóng
#529 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 4 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
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu tại server/app/interfaces/repository.py, ở bốn route hiện đang sử dụng self.not_implemented, và so sánh hành vi của chúng với các operation OpenAPI được liên kết của Submodel Repository Service và issue #439. Được xem là hoàn thành khi triển khai các operation PATCH cho metadata và value, cùng các operation GET cho value và path, với các response được chỉ định.

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

Mô tả

feature high priority server

Current Situation

Currently, several server endpoints under /submodels/{submodelIdentifier} are not implemented:

"/$metadata", methods=["PATCH"], endpoint=self.not_implemented
"/$value", methods=["GET"], endpoint=self.not_implemented
"/$value", methods=["PATCH"], endpoint=self.not_implemented
"/$path", methods=["GET"], endpoint=self.not_implemented

According to the Submodel Repository Service OpenAPI Specification, the PATCH /submodels/{submodelIdentifier}/$metadata endpoint should update the metadata attributes of an existing Submodel.

[...]
responses:
        '204':
          description: Submodel updated successfully
[...]

The GET /submodels/{submodelIdentifier}/$value endpoint should return the specific Submodel in its value only representation.

[...]
responses:
        '200':
          description: Requested Submodel
          content:
            application/json:
              schema:
                $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.1#/components/schemas/SubmodelValue'
[...]

The PATCH /submodels/{submodelIdentifier}/$value endpoint should support the updating of the values of an existing Submodel.

[...]
responses:
        '204':
          description: Submodel updated successfully
[...]

The GET /submodels/{submodelIdentifier}/$path endpoint should return a specific Submodel in path notation.

[...]
responses:
        '200':
          description: Requested Submodel
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.1#/components/schemas/PathItem'
[...]

This issue specifies https://github.com/eclipse-basyx/basyx-python-sdk/issues/439.

Proposed Change

We should evaluate and, if feasible, implement the four missing PATCH /submodels/{submodelIdentifier}/$metadata, GET /submodels/{submodelIdentifier}/$value, PATCH /submodels/{submodelIdentifier}/$value and GET /submodels/{submodelIdentifier}/$path endpoints according to the specification.

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

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 eclipse-basyx/basyx-python-sdk

Tất cả issue của eclipse-basyx/basyx-python-sdk

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.