-
Notifications
You must be signed in to change notification settings - Fork 0
API V2
Chris Sweet edited this page Mar 17, 2023
·
17 revisions
- Ordering of data is important. Mostly need alphabetic but date latest first for cards?
- Calls API to get list of project names/ids,
api/v2/projects - Calls API with user's choice of project to get all Card data for that project,
api/v2/cards/project/<project id>. - Puts information into tables with pagination, loads processed images.
Calling /api/v2/projects gets a list of projects and their info.
Calling /api/v2/projects/{id}/cards gets the list of cards associated with that project
- Calls API to get list of project names/ids,
api/v2/projectsand the next card number (maxcard_id_endfromcardinfo)api/v2/cardinfo/card_id_end/max(this is a hard one to define). - Lets user select a project (optional) and collects card information like annotation and comment
- Generates artwork and stores card information into
cardinfo,api/v2/cardinfo.
- Calls API to get list of project names/ids,
api/v2/projects - Gets all info for the selected project,
api/v2/projects/<project id>(or maybe the projects endpoint just sends everything back?) - Lets user select a project (or not for "create") and allows them to edit or enter fields, saves to
api/v2/projects/<project id>ifidknown elseapi/v2/projects.
Create project by POST request to /api/v2/projects/
Update project by PUT request to /api/v2/projects/{id}
- Calls API to get list of reagents,
api/v2/reagents - User enters info for a new Card layout, name, notes and selects from a list of 12 reagents for each lane.
- Saves new Card layout to
api/v2/tests
- User enters info for a new Lane, name, notes
- Saves new Lane to
api/v2/reagents
- User enters info for a new Sample, name
- Saves new Sample to
api/v2/samples
- Calls API to get list of *,
api/v2/* - User selects the item to be removed to get id
- Removes * to
api/v2/*/<id>