-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Gurnell
committed
Aug 6, 2013
1 parent
0afcb80
commit c841959
Showing
8 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
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
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 %} |
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
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
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 %} |
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
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