Skip to content

Commit

Permalink
Move CSV API endpoint into V2 fixes #3045 (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlockhart authored Jul 15, 2020
1 parent d7fd4a7 commit fc4c7da
Show file tree
Hide file tree
Showing 12 changed files with 494 additions and 495 deletions.
296 changes: 148 additions & 148 deletions app/experimenter/docs/openapi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,154 +5,6 @@
"version": ""
},
"paths": {
"/api/v1/experiments/csv/": {
"get": {
"operationId": "listExperiments",
"description": "",
"parameters": [],
"responses": {
"200": {
"content": {
"text/csv": {
"schema": {
"type": "array",
"items": {
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"type": {
"enum": [
"pref",
"addon",
"generic",
"rollout",
"message",
"rapid"
]
},
"status": {
"enum": [
"Draft",
"Review",
"Ship",
"Accepted",
"Live",
"Complete"
]
},
"experiment_url": {
"type": "string",
"readOnly": true
},
"public_description": {
"type": "string",
"nullable": true
},
"owner": {
"type": "string",
"readOnly": true
},
"analysis_owner": {
"type": "string",
"readOnly": true
},
"engineering_owner": {
"type": "string",
"nullable": true,
"maxLength": 255
},
"short_description": {
"type": "string",
"nullable": true
},
"objectives": {
"type": "string",
"nullable": true
},
"parent": {
"type": "string",
"readOnly": true
},
"projects": {
"type": "string",
"readOnly": true
},
"data_science_issue_url": {
"type": "string",
"format": "uri",
"nullable": true,
"maxLength": 200,
"pattern": "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\u00a1-\uffff0-9](?:[a-z\u00a1-\uffff0-9-]{0,61}[a-z\u00a1-\uffff0-9])?(?:\\.(?!-)[a-z\u00a1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\u00a1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
},
"feature_bugzilla_url": {
"type": "string",
"format": "uri",
"nullable": true,
"maxLength": 200,
"pattern": "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\u00a1-\uffff0-9](?:[a-z\u00a1-\uffff0-9-]{0,61}[a-z\u00a1-\uffff0-9])?(?:\\.(?!-)[a-z\u00a1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\u00a1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
},
"firefox_channel": {
"enum": [
null,
"Nightly",
"Beta",
"Release"
],
"nullable": true
},
"normandy_slug": {
"type": "string",
"nullable": true,
"maxLength": 255
},
"proposed_duration": {
"type": "integer",
"maximum": 1000,
"nullable": true,
"minimum": 0
},
"proposed_start_date": {
"type": "string",
"format": "date",
"nullable": true
},
"related_to": {
"type": "string",
"readOnly": true
},
"related_work": {
"type": "string",
"nullable": true
},
"results_initial": {
"type": "string",
"nullable": true
},
"results_url": {
"type": "string",
"format": "uri",
"nullable": true,
"maxLength": 200,
"pattern": "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\u00a1-\uffff0-9](?:[a-z\u00a1-\uffff0-9-]{0,61}[a-z\u00a1-\uffff0-9])?(?:\\.(?!-)[a-z\u00a1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\u00a1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
}
},
"required": [
"name"
]
}
}
}
},
"description": ""
}
},
"tags": [
"Core: Public"
]
}
},
"/api/v1/experiments/{slug}/recipe/": {
"get": {
"operationId": "RetrieveExperiment",
Expand Down Expand Up @@ -1172,6 +1024,154 @@
]
}
},
"/api/v2/experiments/csv/": {
"get": {
"operationId": "listExperiments",
"description": "",
"parameters": [],
"responses": {
"200": {
"content": {
"text/csv": {
"schema": {
"type": "array",
"items": {
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"type": {
"enum": [
"pref",
"addon",
"generic",
"rollout",
"message",
"rapid"
]
},
"status": {
"enum": [
"Draft",
"Review",
"Ship",
"Accepted",
"Live",
"Complete"
]
},
"experiment_url": {
"type": "string",
"readOnly": true
},
"public_description": {
"type": "string",
"nullable": true
},
"owner": {
"type": "string",
"readOnly": true
},
"analysis_owner": {
"type": "string",
"readOnly": true
},
"engineering_owner": {
"type": "string",
"nullable": true,
"maxLength": 255
},
"short_description": {
"type": "string",
"nullable": true
},
"objectives": {
"type": "string",
"nullable": true
},
"parent": {
"type": "string",
"readOnly": true
},
"projects": {
"type": "string",
"readOnly": true
},
"data_science_issue_url": {
"type": "string",
"format": "uri",
"nullable": true,
"maxLength": 200,
"pattern": "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\u00a1-\uffff0-9](?:[a-z\u00a1-\uffff0-9-]{0,61}[a-z\u00a1-\uffff0-9])?(?:\\.(?!-)[a-z\u00a1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\u00a1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
},
"feature_bugzilla_url": {
"type": "string",
"format": "uri",
"nullable": true,
"maxLength": 200,
"pattern": "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\u00a1-\uffff0-9](?:[a-z\u00a1-\uffff0-9-]{0,61}[a-z\u00a1-\uffff0-9])?(?:\\.(?!-)[a-z\u00a1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\u00a1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
},
"firefox_channel": {
"enum": [
null,
"Nightly",
"Beta",
"Release"
],
"nullable": true
},
"normandy_slug": {
"type": "string",
"nullable": true,
"maxLength": 255
},
"proposed_duration": {
"type": "integer",
"maximum": 1000,
"nullable": true,
"minimum": 0
},
"proposed_start_date": {
"type": "string",
"format": "date",
"nullable": true
},
"related_to": {
"type": "string",
"readOnly": true
},
"related_work": {
"type": "string",
"nullable": true
},
"results_initial": {
"type": "string",
"nullable": true
},
"results_url": {
"type": "string",
"format": "uri",
"nullable": true,
"maxLength": 200,
"pattern": "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\u00a1-\uffff0-9](?:[a-z\u00a1-\uffff0-9-]{0,61}[a-z\u00a1-\uffff0-9])?(?:\\.(?!-)[a-z\u00a1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\u00a1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
}
},
"required": [
"name"
]
}
}
}
},
"description": ""
}
},
"tags": [
"Core: Private"
]
}
},
"/api/v2/experiments/{slug}/design-addon-rollout": {
"get": {
"operationId": "RetrieveExperiment",
Expand Down
Loading

0 comments on commit fc4c7da

Please sign in to comment.