Coder Social home page Coder Social logo

dpsim-api's People

Contributors

richardmarston avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

richardmarston

dpsim-api's Issues

Upload OpenAPI spec to branch

We would like to have a static version of the OpenAPI spec on a GitHub branch that we can then render using redoc for the SOGNO documentation.

Remove multipart/form-data format for /simulation and simplify swagger UI

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 instead of being shown as "application/octet-stream"

Generate OpenAPI of the service

It would be good to have an OpenAPI description of the DPsim API so that users can easily write or generate a client. okapi could be used for this feature.

Improve the ability to configure the deployment

It is currently not possible to change the url of any related resource (rabbitmq, redis, fileservice) leading to possible collisions with other services, this should be changed in the future. Also the password for rabbitmq is hardcoded to pikas default which is not a longterm solution. Redis in the meanwhile has no authentication set up at all. Both are not available from outside the k8s cluster so this is not a big issue but might become one if user what to use existing resources.

Implement /simulations correctly

Currently the /simulations endpoint returns a dummy simulation.
Implement the returning the array of existing endpoints.
As returning all the simulations will be lots of data, just return a summary for each simulation.

User management

We need to start working with keycloak to authenticate users.

Minimum implementation:

  • roles
    • admin
    • member - observer plus can start simulations
    • observer - can query simulations and look at simulation results

Remove hard coded values from dpsim-api + dpsim-worker example

Network files should be stored in sogno file server and the simulation request needs to include the fileID.

  • translate file ID to URL in S3 storage using sogno file service ID
  • request to dpsim API with file ID (zip of CIM files)
  • create job description and send via AMQP to be retrieved by dpsim worker

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.