Skip to content

Commit

Permalink
UI for the FORM API (#21)
Browse files Browse the repository at this point in the history
* changes

* find documents

* route complete

* test getfromdb

* test APS

* FORM API GUI added
  • Loading branch information
HemanthSai7 authored Sep 27, 2022
1 parent 1341b15 commit da059ba
Show file tree
Hide file tree
Showing 34 changed files with 3,072 additions and 2 deletions.
14 changes: 12 additions & 2 deletions API/fwapp.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
from API import app
from API.utils.DBConnection import DBConnection
from API.services.DBManipulation import *
from .RequestBodySchema import FormData
from .ResponseBodySchema import EDAResponseData

from API.services.DBManipulation import *
from fastapi.templating import Jinja2Templates
from fastapi import Request
from fastapi.staticfiles import StaticFiles

# template and static files setup
templates = Jinja2Templates(directory="API/templates/")
app.mount("/static", StaticFiles(directory="API/static"), name="static")

import json
@app.get("/")
@app.get("/home")
def home(request: Request):
return templates.TemplateResponse('home.html',context={'request':request})


@app.get("/api/response_check")
Expand Down
3 changes: 3 additions & 0 deletions API/static/css/style.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions API/static/images/cta-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions API/static/images/feature-icon-01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions API/static/images/feature-icon-02.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions API/static/images/feature-icon-03.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions API/static/images/feature-icon-04.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions API/static/images/feature-icon-05.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions API/static/images/feature-icon-06.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit da059ba

Please sign in to comment.