post request, input is the json representation of diagram, and the output is the diagram objects with edges and nodes in the system