microsoft / microsoft/OpenAPI.NET.OData
NavigationProperty has all possible methods, while base endpoint only has GET available.
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 240
- Fork
- 70
- Merge trung bình
- 7 giờ 59 phút
- Pull request đã merge (30 ngày)
- 13
Mô tả
Im pretty new to C# development, so let me know if i need to include more details!
I am trying to use metadata (edmx file) from Business Central to generate swaggerUI docs for our custom API, but im having issues with navigation properties.
The base endpoint gets converted properly, only showing the valid methods for the endpoint:
But the NavigationProperty endpoints seem to get generated with no regard to the base endpoint:
I tried to use the "RequireDerivedTypesConstraintForBoundOperations" parameter in the ConvertSettings of the OoasUtil tool, with no luck.
Is there a way for me to either configure the converter or edit my edmx file in order to only show actually available methods for "nested" endpoints?
NavigationProperty for EntityType company:
EntitySet for custLedgerEntries endpoint:
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.
Hướng nghiên cứu
Tái hiện quá trình chuyển đổi với Business Central EDMX và so sánh các phương thức được tạo cho endpoint cơ sở và các endpoint NavigationProperty của nó. Bắt đầu với ConvertSettings, bao gồm RequireDerivedTypesConstraintForBoundOperations, và kiểm tra entry point của converter được OoasUtil sử dụng. Hoàn thành khi các endpoint lồng nhau chỉ expose những phương thức thực sự khả dụng cho chúng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100