Last active
June 28, 2019 16:47
-
-
Save marcellustavares/f310344aa4aab9a0b325d52e5a9abbd2 to your computer and use it in GitHub Desktop.
AC Experiments API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
components: | |
schemas: | |
Experiment: | |
description: https://www.schema.org/Experiment | |
properties: | |
dateCreated: | |
format: date-time | |
type: string | |
description: | |
type: string | |
id: | |
format: int64 | |
type: integer | |
name: | |
type: string | |
pageURL: | |
type: string | |
pageTitle: | |
type: string | |
required: | |
- dateCreated | |
- name | |
- pageURL | |
type: object | |
Target: | |
description: https://www.schema.org/Target | |
properties: | |
dxpExperienceId: | |
format: int64 | |
type: integer | |
dxpExperienceName: | |
type: string | |
dxpSegmentId: | |
format: int64 | |
type: integer | |
dxpSegmentName: | |
type: string | |
required: | |
- dxpExperienceId | |
- dxpExperienceName | |
- dxpSegmentId | |
- dxpSegmentName | |
type: object | |
Goal: | |
description: https://www.schema.org/Goal | |
properties: | |
metric: | |
enum: [BOUNCE_RATE, TIME_ON_PAGE, SCROLL_DEPTH, CLICKS] | |
type: string | |
target: | |
type: string | |
required: | |
- metric | |
type: object | |
info: | |
description: "" | |
title: "" | |
version: v1.0 | |
openapi: 3.0.1 | |
paths: | |
"/experiments": | |
post: | |
operationId: postExperiment | |
requestBody: | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Experiment" | |
description: "" | |
responses: | |
200: | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Experiment" | |
description: "" | |
tags: ["Experiment"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment