API
Swagger API details
This is a snapshot of swagger.json file at time of this release.
You can also view the 'live' swagger API documentation details for your hosted backend environment by adding /swagger
to your backend hostUrl link.
Create/Update Experiment User
user1
Set Group Membership
POST /api/init HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 185
{
"id": "user1",
"group": {
"schoolId": [
"school1"
],
"classId": [
"class1"
],
"instructorId": [
"instructor1"
]
},
"workingGroup": {
"schoolId": "school1",
"classId": "class1",
"instructorId": "instructor1"
}
}
Set Group Membership
{
"id": "text",
"group": {
"class": [
{}
]
},
"workingGroup": {
"school": "text",
"class": "text",
"instructor": "text"
}
}
Set group membership for a user
user1
Set Group Membership
null value in column "id" of relation "experiment_user" violates not-null constraint
POST /api/groupmembership HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"id": "user1",
"group": {
"schoolId": [
"school1"
],
"classId": [
"class1"
],
"instructorId": [
"instructor1"
]
}
}
{
"id": "text",
"group": {
"class": [
{}
]
},
"workingGroup": {
"school": "text",
"class": "text",
"instructor": "text"
}
}
Set group membership for a user
user1
Set Group Membership
null value in column "id" of relation "experiment_user" violates not-null constraint
PATCH /api/groupmembership HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"id": "user1",
"group": {
"schoolId": [
"school1"
],
"classId": [
"class1"
],
"instructorId": [
"instructor1"
]
}
}
{
"id": "text",
"group": {
"class": [
{}
]
},
"workingGroup": {
"school": "text",
"class": "text",
"instructor": "text"
}
}
Set working group for a user
user1
Set Group Membership
null value in column "id" of relation "experiment_user" violates not-null constraint
POST /api/workinggroup HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"id": "user1",
"workingGroup": {
"schoolId": "school1",
"classId": "class1",
"instructorId": "instructor1"
}
}
{
"id": "text",
"group": {
"class": [
{}
]
},
"workingGroup": {
"school": "text",
"class": "text",
"instructor": "text"
}
}
Set working group for a user
user1
Set Group Membership
null value in column "id" of relation "experiment_user" violates not-null constraint
PATCH /api/workinggroup HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"id": "user1",
"workingGroup": {
"schoolId": "school1",
"classId": "class1",
"instructorId": "instructor1"
}
}
{
"id": "text",
"group": {
"class": [
{}
]
},
"workingGroup": {
"school": "text",
"class": "text",
"instructor": "text"
}
}
Assign a Experiment Point
user1
add
Experiment Point is Assigned
Experiment user not defined
null value in column "id" of relation "experiment_user" violates not-null constraint
POST /api/assign HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"userId": "user1",
"context": "add"
}
[
{
"site": "text",
"target": "text",
"condition": "text"
}
]
Mark a Experiment Point
partition1
control
condition applied
exp1
Experiment Point is Marked
User not defined
POST /api/mark HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"userId": "text",
"site": "text",
"target": "partition1",
"condition": "control",
"status": "condition applied",
"experimentId": "exp1"
}
{
"id": "text",
"experimentId": "text",
"site": "text",
"target": "text",
"condition": "text"
}
Post log data
Log data
null value in column "id" of relation "experiment_user" violates not-null constraint
POST /api/log HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 289
{
"userId": "text",
"value": [
{
"userId": "user1",
"metrics": {
"attributes": {
"continuousMetricName": 100,
"categoricalMetricName": "CATEGORY"
},
"groupedMetrics": [
{
"groupClass": "workspaceType",
"groupKey": "workspaceName",
"attributes": {
"continuousMetricName": 100,
"categoricalMetricName": "CATEGORY"
}
}
]
}
}
]
}
No content
Get all metrics tracked
Get all Metrics
GET /api/metric HTTP/1.1
Host:
Accept: */*
Get all Metrics
No content
Add filter metrics
Filtered Metrics
Insert error in database
POST /api/metric HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"metricUnit": {}
}
No content
Last updated