Closed Fancien closed 1 year ago
Possible models:
Session:
id: Unique session identifier
subject: The url towards the resource to evaluate (be careful of path if it is a local file sent by user)
status: The running status of the session (queued, preprocessing, running, postprocessing, finished, error).
list of tasks: The list of task objects associated with the session
Essential score: The FAIR evaluation score when only essential tasks are evaluated
Score: The FAIR evaluation score when all tasks are evaluated (including non essential ones)
Not applicable number: Number of not_applicable tasks
Task:
TaskDescription: This describes the different tasks that are evaluated.
Starting point for the models is done, but changes may be implemented based on future needs
The different classes the user interacts with needs to be defined as pydantic Models. This includes:
These models needs to be defined in such a way that the documentation created by FastAPI is correct and includes all relevant attributes and parameters. For example, these models cannot define @property methods, as these are not picked up by FastAPI.