r/FastAPI • • Dec 14 '20

Question Starting with FastAPI and vanilla Bootstrap CRUD

Good day all. I have been playing around with FastAPI this past week and a half. So I am able to make the normal API backend component work. However I now want to plug in the normal bootstrap front end using Javascript for instance..and just make a normal crud using bootstrap form and posting to backend. For instance normal - create/update/delete/read....."students/employees" models or examples you get on web. Does anyone have a working example of posting HTML forms to FastAPI backend....would really appreciate it....thanks in advance

3 Upvotes

2 comments sorted by

1

u/metyaz Dec 14 '20

1

u/barnez29 Dec 17 '20 edited Dec 17 '20

u/metyaz

Please have a look at the following that I logged on SO..I am not able to render the index.html template. Although the /docs swagger UI works fine.

https://stackoverflow.com/questions/65335763/fastapi-render-template-in-index-html-not-working

have been able to make it work since