natcap / urban-online-workflow

This repository hosts the beta implementation of the Urban Online ES Workflow. The project is intended to give urban planners the ability to create and assess scenarios using InVEST Urban models.
1 stars 5 forks source link

Create template infrastructure for endpoints #20

Closed dcdenu4 closed 2 years ago

dcdenu4 commented 2 years ago

Create the foundation for server endpoints and database management. We are using FastAPI along with SQLAlchemy and SQLite. Pydantic model are used for creating the Class representation of the DB tables.

Most of the user/session and scenario endpoints are functioning. The pattern, wallpapering, and job handling is not implemented.

dcdenu4 commented 2 years ago

@phargogh , I think I touched on all your comments. I also added some UUID duplicate "safety" checks. It's probably overkill and we could simply return a HTTPException 404 "Unique session creation failed" or something.

phargogh commented 2 years ago

Thanks @dcdenu4 !