Skip to content

Design interface #8

@Shaofanl

Description

@Shaofanl

Preprocess:

  • Run python manager.py testinit in shell. I added a default work in testinit
  • Access http://localhost:5000/work/fetch/parts/1 to get Parts:
    • alias, local_id: Because one prototype might have serval instances in a work, hence we distinguish them with Alias and Local_id. (Local_id is also used in CMatrix and Relationship.)
    • x, y: Coordinates.
    • prototype_id: What prototype does this instance belong to. You can treat it as 'type_id'.
  • Access http://localhost:5000/work/fetch/relationship/1 to get Relationship:
    • from, to: The local_id of the connected instances.
    • relationship: A string.
  • Access http://localhost:5000/work/fetch/cmatrix/1 to get CMatrix:
    • numbers: The local_id of the connected instances.

Metadata

Metadata

Assignees

No one assigned

    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