Archived in favour of SmallRye io.smallrye:smallrye-open-api-ui-forms
see https://github.com/smallrye/smallrye-open-api/tree/master/ui/open-api-ui-forms
A generic bundled spa in React, which introspects Swagger OpenAPI definitions file, to build automatically html forms (bootstrap4) for POST endpoints exchanging JSON
GOALs:
- build automatically an html form, by introspecting Swagger OpenAPI definitions file
- the introspection works at runtime, not at
npm
build time
non-GOALS:
- not a "low-code" app generator
Watch the video on YouTube:
First install dependencies:
npm install
To create a production build:
npm run build-prod
To create a development build:
npm run build-dev
Open the file dist/index.html
in your browser
Add to Quarkus app pom.xml
this project and webjars-locator dependencies:
<dependency>
<groupId>org.kie</groupId>
<artifactId>openapi-as-reactforms</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-webjars-locator</artifactId>
</dependency>
Can now navigate to http://localhost:8080/webjars/openapi-as-reactforms/index.html
.