Add dedicated OData API support (extract & publish)
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
- Ít trao đổi
- Công nghệ
- azure, typescript
Hướng nghiên cứu
Bắt đầu trong api-extractor.ts, api-publisher.ts và apim-client.ts, lần theo cách xử lý apiType hiện có và các luồng getExportFormat()/getImportFormat(). Kiểm tra tài liệu định dạng API của APIM hoặc hành vi hiện có của client để xác nhận các định dạng xuất và nhập OData/CSDL. Công việc được xem là hoàn tất khi các entity set và function OData vẫn tồn tại qua quá trình extract và publish, với các bài kiểm thử unit hoặc integration bao phủ cả hai luồng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
apiops-cli currently handles OData APIs via the generic OpenAPI fallback path, which does not capture OData-specific artifacts. This issue tracks adding first-class OData support to both the extractor and publisher.
Background
Azure API Management added OData API support, but tooling across the ecosystem has lagged behind (see Azure/apiops#419). Users report that entity sets and functions are lost when extracting/publishing OData APIs.
Current behavior
- Extractor (
api-extractor.ts): No special-case handling forodataAPI type — it falls through to the genericopenapi-linkexport, which misses OData-specific resources. - Publisher (
api-publisher.ts): Recognizesodataas a validapiTypestring but has no OData-specific import format or schema handling. - APIM Client (
apim-client.ts):getExportFormat()returns'openapi-link'for OData via thedefaultcase — no dedicated export format.
What needs to change
- Extract: Add OData-specific handling in
api-extractor.tsto export CSDL schemas, entity sets, and functions via the appropriate APIM export format. - APIM Client: Add an
'odata'case togetExportFormat()returning the correct APIM export format for OData APIs (investigate whether APIM supports a dedicated OData/CSDL export link). - Publish: Add OData-specific import format handling in
getImportFormat()so that CSDL schemas and entity sets are correctly imported on publish. - Tests: Add unit/integration tests covering OData extract and publish flows.
Related
- Azure/apiops#419 — original feature request in the apiops toolkit repo
- Ngôn ngữ chính
- TypeScript
- Star
- 29
- Fork
- 10
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 22
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 Azure/apiops-cli
-
type:question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Azure/apiops-cli#277 ·
-
type:documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
Azure/apiops-cli#250 ·
-
Documentation P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Azure/apiops-cli#24 · 1 bình luận ·
-
type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Azure/apiops-cli#291 ·
-
type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Azure/apiops-cli#276 ·
Tất cả issue của Azure/apiops-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
copse-dev/agent-pane#2953 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Đang mởbug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Client support matrix inclusion Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
calcite-components needs triage refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Esri/calcite-design-system#15203 ·