Skip to content

Instantly share code, notes, and snippets.

@marcellustavares
Last active June 28, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcellustavares/f310344aa4aab9a0b325d52e5a9abbd2 to your computer and use it in GitHub Desktop.
Save marcellustavares/f310344aa4aab9a0b325d52e5a9abbd2 to your computer and use it in GitHub Desktop.
AC Experiments API
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