Skip to content

Commit

Permalink
Add precision on input parameter for sheep_counter example
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Dec 14, 2018
1 parent df5219b commit 200d458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_programs/sheep_counter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Open in your browser the url [http://localhost:7437/index.html](http://localhost

The API endpoints are the following:

- `POST http://localhost:7437/sheep`: Initialise the counter with the specified `nbsheep` value provided in the json body (default 0) and return the new `nbsheep` value in the response as a json
- `POST http://localhost:7437/sheep`: Initialise the counter with the specified `nbsheep` value provided in the json body (default 0) and return the new `nbsheep` value in the response as a json. The JSON body must be a single numeric value.
- `PUT http://localhost:7437/sheep`: Add a sheep to the current counter and return the new `nbsheep` value in the response as a json
- `DELETE http://localhost:7437/sheep`: Reset the sheep counter to 0 and return the new `nbsheep` value in the response as a json

Expand Down

0 comments on commit 200d458

Please sign in to comment.