This example form backend offers two mininal forms:
- Redirect Form: It's result response is a redirect (http-status =
302) to example.org - Selfcontained-HTML Form: Simply returns a selfcontained (html, css, ...) html.
All this is supposed to run on localhost
- Install dependencies with
uvuv sync
- Run this backend
Note the port fastapi is occupying (e.g. 8000)
uv run fastapi dev --port 8090 - Configure a conquery backend to point to this backend:
{ "plugins": [ { "type": "FORM_BACKEND", "id": "some_form_backend", "baseURI": "http://localhost:8090", "conqueryApiUrl": "http://localhost:8080" } ], "jerseyClient": { "gzipEnabledForRequests": false } } - Start backend with api on port 8080
- Create a dataset, nothing else needed for this demo
- Start frontend pointing to the backend api
- Visit http://localhost:8000/?access_token=user.SUPERUSER
- Execute the two forms and inspect the results