Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design interface #8

Open
Shaofanl opened this issue Aug 8, 2015 · 3 comments
Open

Design interface #8

Shaofanl opened this issue Aug 8, 2015 · 3 comments

Comments

@Shaofanl
Copy link
Contributor

Shaofanl commented Aug 8, 2015

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.
@Shaofanl
Copy link
Contributor Author

Update:

  • Run python manager.py testinit in shell. I added a default Components in testinit
  • Access http://localhost:5000/data/fetch/parts to get Parts
  • Access http://localhost:5000/data/fetch/relationship to get Relationship
  • Access http://localhost:5000/data/fetch/adjmatrix to get AdjMatrix

@Shaofanl
Copy link
Contributor Author

New interface:

  • Access http://localhost:5000/data/fetch/device to get Devices

Devices are stored as some special design. We can load designs from file automatically now (check server/models/devices/*.txt for detail)

@Shaofanl
Copy link
Contributor Author

all interfaces in Design is now moved to design/*
for instance, http://localhost:5000/data/fetch/device is moved to http://localhost:5000/design/data/fetch/device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant