microsoft / microsoft/OpenAPI.NET.OData

NavigationProperty has all possible methods, while base endpoint only has GET available.

Aperta
#569 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
C#
Stelle
240
Fork
70
Merge medio
7h 59m
PR unite (30g)
13

Descrizione

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:
image

But the NavigationProperty endpoints seem to get generated with no regard to the base endpoint:
image

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:
image

EntitySet for custLedgerEntries endpoint:
image

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci la conversione con il Business Central EDMX e confronta i metodi generati per l’endpoint di base e i relativi endpoint di NavigationProperty. Inizia con ConvertSettings, incluso RequireDerivedTypesConstraintForBoundOperations, e analizza il punto di ingresso del convertitore utilizzato da OoasUtil. Il lavoro è completato quando gli endpoint annidati espongono solo i metodi effettivamente disponibili per loro.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
api
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.