OpenAPI 3 definition for flame and django rest framework implementation.
Flame should have been already installed in this computer. Refer to the flame manual for full instructions of how create a flame conda environment and install the software.
source activate flame (in Linux)
activate flame (in Windows)git clone https://github.com/phi-grib/flame_service.gitcd flame_API/flame_apiIn the nginx-app.conf, supervisor-app.conf and uwsgi.ini replace {ABSOLUTE_PROJECT_PATH} string with the absolute path of the project and {ENVIRONMENT_PATH_FLAME} string with the absolute path of the flame enviroment files. E.g.
Create the folder 'var/run/nginx/' in your flame enviroment.
mkdir /home/$user/$conda/envs/flame/var/run/nginx/supervisord -c supervisor-app.conf
Then, open a browser and type the address http://localhost:8000
The flame GUI consist in 2 main areas: control area and visualization area.
Control area has all functions needed. Those functions are distributed in three tabs (Manage, Build and Predict). The Manage tab is responsible for managing the models: create, delete, import and export. Build and Predict tabs are teh responsible to create and predict models. In both tabs, the sequence is always the same:
- First we have to select a model
- Next step is select a training or prediction set
- Select the parameters desired in case of construction.
- And finally, throw the prediction or build the model.
Here I'll use the base URL to be api.flame.edu/v1/ as a placeholder for the future (no yet created) base URL that respects the consortium specs.
For sake of simplicity and guiven the architecture of flame this API uses 3 roots:
/manage
/build
/predict
Each model is a resource that the client can create, modify, delete or exploit so the url structure will be:
api.flame.edu/v1/{root}/models/{modelname}
Over this resource the client can create, delete or get info with the HTTP verbs (POST, DELETE, GET...).









