Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redirecting Form Backend

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.

Getting started

All this is supposed to run on localhost

  1. Install dependencies with uv
    uv sync
  2. Run this backend
    uv run fastapi dev --port 8090
    
    Note the port fastapi is occupying (e.g. 8000)
  3. 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
         }
     }
  4. Start backend with api on port 8080
  5. Create a dataset, nothing else needed for this demo
  6. Start frontend pointing to the backend api
  7. Visit http://localhost:8000/?access_token=user.SUPERUSER
  8. Execute the two forms and inspect the results

About

An example form backend for conquery that show cases two special result formats

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages