fenfisdi / cdslab_cmodels_api

cmodels API repo
GNU General Public License v3.0
0 stars 0 forks source link

Endpoint: create initial simulation configuration #40

Closed jearistiz closed 3 years ago

jearistiz commented 3 years ago

Create a POST request to store the initially minimal simulation configuration document. The request must comply with the following schema:

{
  user_id: ObjectId,
  cmodel_id: ObjectId,
  optimize_parameters: bool
}

In the meantime the backend must store the new simulation configuration in the database with the following fields defined:

{
  simulation_id: ObjectId,
  inserted_at: datetime,
  updated_at: datetime
  user_id: ObjectId,
  cmodel_id: ObjectId,
  optimize_parameters: bool,
  executed: False
}

The HTTP response must comply with:

{
  user_id: ObjectId
  simulation_id: ObjectId
}

This endpoint must be accessed just after the user chooses if the simulation type is optimize parameters or fixed parameters.

Camilo-HG commented 3 years ago

After reviewing the diagram flow, we have noticed that instead of executed it sould be Status and it can take the next values: Incomplete config, Running, Done and Error