From 0513695586e66118b31cefaa7e9d93ede16b672c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nut=CC=A6iu?= Date: Sun, 23 Apr 2017 00:47:02 +0300 Subject: [PATCH] Fixing typos and adding extra information to upload --- src/templates/upload.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/templates/upload.html b/src/templates/upload.html index 8ccc340..b8d08f8 100644 --- a/src/templates/upload.html +++ b/src/templates/upload.html @@ -5,10 +5,11 @@ {{ super() }}

Uploading Data

-

Uploading data is simple, all you need to is send a POST request with content-type application/json to /result.

-

Your JSON must respect all the required fields.

+

Uploading data is simple, all you need to do is send a POST request with content-type application/json to /result.

+

Your JSON must respect all the required fields, if not, you will get back a 400 :)

Example: curl -H "Content-Type: application/json" -X POST -d '{"name":"Anonymous", "gpu":"GPU DUMMY TEXT","cpu":"CPU DUMMY TEXT","log":"So this will be a detailed log.","score": 1}' http://localhost:5000/result

-

If the resource has been added sucessfully then the status code of 201 is returned.

-

The name field can be used with the build in search functionality to search for your own results.

+

If the resource has been added sucessfully then the status code of 201 is returned, any other status code can be considered an error

+

The name field can be used with the build in search functionality to search for results.

+

The location header can be inspected for an url to the newly created result.

{% endblock %} \ No newline at end of file