Skip to content

Commit

Permalink
Updating /put docs in README
Browse files Browse the repository at this point in the history
  • Loading branch information
respondcreate committed Apr 15, 2016
1 parent 0f45a10 commit 60df747
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ A simple [Flask](http://flask.pocoo.org/)-powered microservice that calculates t

## Endpoints

- `/put/<int>` (GET): Store an integer for one minute.
- `/put` (POST/PUT): Store an integer for one minute. Expects a JSON object in the following structure:

```json
{
"int": <integer>
}
```
- `/median` (GET): Initiate a median calculation request for all stored integers received over the last minute. Returns a JSON object in the following format:

```json
Expand Down

0 comments on commit 60df747

Please sign in to comment.