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

Add models and endpoints for Experiments #343

Merged
merged 5 commits into from
Sep 6, 2024
Merged

Conversation

timcowlishaw
Copy link
Contributor

Experiments are groups of devices which are being used as part of a single experiment.

An experiment has an optional start and end time, and is owned by a user - the user does not need to own the participating devices.

you get GET/PUT/PATCH/POST/DELETE to the /v0/experiments endpoint with json like:

    {
      "name": "test experiment",
      "description": "a test experiment",
      "is_test": false,
      "active": true,
      "starts_at": "2024-01-01T00:00:00Z",
      "ends_at": "2024-06-30T23:59:59Z",
      "device_ids": [ 123, 456, 789 ]
    }

@oscgonfer
Copy link
Contributor

oscgonfer commented Jul 30, 2024

Final to-dos:

@timcowlishaw timcowlishaw merged commit 5c6d37f into master Sep 6, 2024
2 checks passed
@timcowlishaw timcowlishaw deleted the experiments branch September 6, 2024 09:47
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

Successfully merging this pull request may close these issues.

2 participants