Skip to content

Graph generation microservice #6

@Benvii

Description

@Benvii

this issue might be a another repository that doesn't exists yet

The backoffice need to be able to generate graphs based on node, graph datas and retrieve graph, node and edges. As the generation might takes some times we need to figure at a way to poll the micro-service until the generation is finished.

Graph micro service should have the following endpoints :

Send data for generation - POST /graph/

Body will be describe like that :

{
  "end_points": [ "120-42", ... ],
  "hotpoints": ["120-42", ... ],
  "nodes": [
    {
      "x": 48.399626,
      "y": -4.472394,
      "z": 1.2,
      "id": "120-42",
      "data": { 
        "panorama": {...},
        "path_node": null
      }
    }
  ],
  "edges": [
    {
      "source": "120-42",
      "dest": "120-42",
      "data": {
        "path_edge": {...}
      }
    }
   ]
}

Response should return an ID.
Format to be defined

Pool to get generation status or datas - GET /graph/ID ?

This service should be requested every 1-2sec and return some kind of status.
Needs to be defined

It might return the graph when it's finished.

@Valdimus can you complete this when you have found a solution, so that we have a spec for the backoffice (even if it's not implemented) and maybe move this issue in a new repository (if the endpoints aren't in opv-status).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions