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

Sessions #6

Open
ztnel opened this issue Jul 30, 2021 · 0 comments
Open

Sessions #6

ztnel opened this issue Jul 30, 2021 · 0 comments
Assignees
Labels
endpoint endpoint creation or modification model database model change

Comments

@ztnel
Copy link
Member

ztnel commented Jul 30, 2021

Description

Endpoint

GET /v1/session/<id>
This resource is generated by the backend automatically on a capture without a session in the header. After the resource is created the session id is returned to the client so all subsequent captures can be linked with a session

PUT /v1/session/<id>
Used by the backend to append new captures to a session

DELETE /v1/session/<id>
removes a session instance

Model

Sessions will consist of a list of captures in the order they were taken. Only calibration-related captures are recorded by the backend.

{
  "id": "dsajdksbadjba",
  "created_at": "2021-07-11",
  "updated_at": "2021-07-11",
  "captures": [
    "jljfkdljsfkld",
    "dasbyduisadvu",
    "kldsjdaidoahd",
    "jljfkdljsfkld"
  ]
}
@ztnel ztnel added endpoint endpoint creation or modification model database model change labels Jul 30, 2021
@ztnel ztnel self-assigned this Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
endpoint endpoint creation or modification model database model change
Projects
None yet
Development

No branches or pull requests

1 participant