hobru/Power-Platform-Neptune-API-Factory

Swagger UI shows "Failed to load API definition"

Closed this issue · 7 comments

Hi,

first of all, thanks for the tutorial.

when I come to the point to explore the API via Swagger UI, the Endpoint provides an Error. It shows me the URL "https://XXX/neptune/api/dynamic/SH/DEBIA/swagger.json?oas_version=2.0"
image

If I add the parameter "/NEPTUNE/CL_DR_LIB_DDIC_SHLP_X/" to the URL it works fine.

image

Maybe this is something which you can add to your documentation.

Thanks
Robin

hobru commented

Thanks, Robin. Let me look into this and also discuss with the colleagues from Neptune! I will get back to you soon :-)
Holger.

Hi Robin,

cool that you tryout the Neptune API Factory :-)
The URL to the swagger.json should be build automatically and in the correct format when you provide the entity References (Tab ENTITY REFERENCE) which would be in your case this:
image

Afterwards clicking on the Tab "Swagger UI" should actually build the correct URL towards the Open API Spec:
image
How did you get to the point where it builds the "wrong" Url with the missing API Factory Class /NEPTUNE/CL_DR_LIB_DDIC_SHLP_X in the path?

Kind regards
Thorsten

Hi @hobru and @thorsten-wolf-neptune , thanks for the fast feedback.

I added the Entity References
image
and then jump over to the Swagger UI and the Class is missing.
image

For me it is fine, because i know how to fix it in my scenarios. I just wanted you and others to know that there can be some issues.

@thorsten-wolf-neptune if you like to go into an detail session, we can also schedule an private session.
Robin

Hi Robin,

thanks for pointing this out again. It should not happen so I would like to see this in detail (I'm working with Thorsten on this topic). How could I reach you to discuss the details for the session?

Thanks,
Jens-Uwe

Hi @jeugro, just send me an email to my companies mail-adress: robin.hartmann@itmx.de

Hi @RobinHartmann,

we resolved this issue and the fix will be part of our next patch DXP-21.10.0007.

Thanks for reaching out and finding this bug!

Kind regards
Thorsten