sogno-platform / dpsim-api

REST API to run dynamic power system simulations using DPsim
Apache License 2.0
2 stars 2 forks source link

Remove multipart/form-data for /simulation #21

Closed richardmarston closed 2 years ago

richardmarston commented 2 years ago

Currently the load profile data for a simulation request is sent by using multipart/form-data for the /simulation endpoint post. This is not consistent with using sogno/file-service for the model data and makes the swagger ui more complicated to implement. We should move to using json for the /simuation endpoint with a file-service id for the load profile data. This will mean that the form parameters in the swagger UI will be listed correctly, helping the user / developer to fill out the form.

richardmarston commented 2 years ago

This closes https://github.com/sogno-platform/dpsim-api/issues/20