Method for Kendo Form - OpenAPI Specification Integration (with axios for the calls) ?

1 Answer 72 Views
Form General Discussions
GGVD
Top achievements
Rank 1
GGVD asked on 03 Sep 2023, 12:11 PM | edited on 03 Sep 2023, 12:45 PM

Hi !

I was wondering if someone already managed to link the Kendo Form to a sort of generated code objects from an OAS file.

Based on research on the web, there are many ways to generated code from a OAS yaml file.

Since we are using Kendo React (without Typescript) and Axios for the API calls, I found two ways:

- open-api specs generator typescript-axios: The problem is that will result in a project mixing plain javascript and typescript;

- take advantage of the Kendo integration with redux: Use redux-toolkit => rtk-query code generation functionality to generate the files then configure it to use Axios. That solution would require lots of refactoring in the application. And, again, there would be a mix with Typescript.

I would be grateful if you could share ideas, solutions or past experiences concerning that subject.

 

Best regards

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 06 Sep 2023, 03:11 AM

Hi Adrien,

I have gone through our ticket system, but I have to say that this is the first time a question regarding OpenAPI have been raised. Recently there was a question regarding JSON Schema (which I see is part of the OpenAPI), but we do not have support for this as well. Nevertheless, back then I have created an example that covers the most basic scenarios with JSON Schema to generate a KendoReact Form dynamically. I will share it here if it proves helpful for your scenario:

As for the other questions, unfortunately we do not have the expertise on OpenAPI to give any suggestions.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Form General Discussions
Asked by
GGVD
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or