server/app/interfaces/repository.py: Implement missing `/submodels/{submodelIdentifier}` endpoints
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
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-basyx/basyx-python-sdk
-
README CI badge is brokenCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
eclipse-basyx/basyx-python-sdk#656 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug server Specification
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
eclipse-basyx/basyx-python-sdk#655 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug sdk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
eclipse-basyx/basyx-python-sdk#634 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
eclipse-basyx/basyx-python-sdk#632 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug high priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
eclipse-basyx/basyx-python-sdk#631 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của eclipse-basyx/basyx-python-sdk
Issue tương tự
-
Path subtraction removes repeated suffix characters instead of one suffixCó thể đã có người làm @Gwerdonatus đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
joke2k/django-environ#671 ·
-
good first issue help wanted windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
-
test_pgbouncer deploys the server under test from Charmhub instead of the local build (track/1.31)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
canonical/temporal-k8s-operator#195 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
`burr` fails to start when the Python path has a space in itCó thể đã có người làm @enekoreto đã nhận hôm nay. Đang mởstatus/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
device support request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
zigpy/zha-device-handlers#5461 ·
Maintainer thường phản hồi trong vòng 4 ngày