Skip to content

Commit

Permalink
More experiment endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Gurnell committed Aug 6, 2013
1 parent 0afcb80 commit c841959
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 7 deletions.
4 changes: 4 additions & 0 deletions _assets/css/screen.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@import "custom-variables.less";
@import "syntax.less";

#content > *:first-child {
margin-top: 0;
}

.nav-toc {
padding: 0;
list-style-type: none;
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ toc:
- head: '/index.html'
body: []

- head: '/dashboard/index.html'
body: []
#- head: '/dashboard/index.html'
# body: []

- head: '/deployment/web/index.html'
body:
Expand Down
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>{{ page.title }}</h1>
<div class="col-lg-3 col-md-3">
{% nav_toc %}
</div>
<div class="col-lg-9 col-md-9">
<div id="content" class="col-lg-9 col-md-9">
{{ content }}

{% nav_pager %}
Expand Down
20 changes: 19 additions & 1 deletion api/experiment-delete.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
---
layout: page
title: Experiment Delete
---
lead: Delete an experiment.
---

## Request Format

{% highlight http %}
DELETE /v2/experiment/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa HTTP/1.1
Host: api.mynaweb.com
{% endhighlight %}

## Response Format

{% highlight http %}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: <length>

{ "typename": "ok" }
{% endhighlight %}
2 changes: 1 addition & 1 deletion api/experiment-record.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: page
title: Experiment Record
lead: Record new user activity: page views and conversions.
lead: "Record new user activity: page views and conversions."
---

## Request Format
Expand Down
27 changes: 26 additions & 1 deletion api/experiment-reset.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
---
layout: page
title: Experiment Reset
---
lead: Reset the view and reward counts of an experiment to zero.
---

## Request Format

This is a POST endpoint to indicate that it is not idempotent. However, the body is currently ignored.

{% highlight http %}
POST /v2/experiment/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/reset HTTP/1.1
Content-Type: application/json
Content-Length: 2

{}
{% endhighlight %}

## Response Format

{% highlight http %}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: <length>

{
// Experiment info in the same format as the "experiment read" endpoint...
}
{% endhighlight %}
1 change: 1 addition & 0 deletions api/experiment-search.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: Experiment Search
lead: Get information on one or more experiments in your account.
---

## Request Format
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ lead: All-new documentation for an all-new Myna.
---

<p class="alert alert-danger">
This is a work-in-progress help site for a forthcoming update to the Myna dashboard and tools. We'll be launching soon. In the meantime, please refer to our <a href="https://mynaweb.com/help">existing site</a> for help and support!.
This is a work-in-progress help site for a forthcoming update to Myna. We'll be launching this update soon. In the meantime, please refer to our <a href="https://mynaweb.com/help">existing site</a> for help and support.
</p>

0 comments on commit c841959

Please sign in to comment.