A FastAPI RESTful implementation of the sessions module in OCPI (Open Charge Point Interface) for communication b/n EV drivers and Charge Point Operators.
pip3 install fastapi "uvicorn[standard]" (linux)
or
pip install fastapi "uvicorn[standard]" (windows)
For the sake of creating a simple reply/request API, there is no connected database. As a result, the data is not persistent. However, if the server is not reloaded, the data in memory will persist.
Use localhost:8000/docs to access the interactive documentation or localhost:8000/redoc for a static non-interactive documentation.
The Sender Interface is set to run on port=8000 whereas the Receiver Interface is set to run on port=9000
Data about session objects needed for performing requests(query parameters, path/route parameters etc.) can be found in the
For purposes of simplicity, id fields of session objects in the Receiver Interface have been set.
Data types of object fields were not strictly followed for simplicity's sake and time constraints.