From 98fb6ecef75a412f90e6f911589014913cbec5f9 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 1 Aug 2019 13:43:28 +0200 Subject: [PATCH] fix: [api doc] typo --- bin/packages/Item.py | 1 + doc/README.md | 2 +- var/www/modules/restApi/Flask_restApi.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/packages/Item.py b/bin/packages/Item.py index 6b24bb18..9b1b4b9d 100755 --- a/bin/packages/Item.py +++ b/bin/packages/Item.py @@ -85,6 +85,7 @@ def get_item(request_dict): content = request_dict.get('content', False) if content: + # UTF-8 outpout, # TODO: use base64 dict_item['content'] = get_item_content(item_id) lines_info = request_dict.get('lines', False) diff --git a/doc/README.md b/doc/README.md index af651872..07aa8e22 100644 --- a/doc/README.md +++ b/doc/README.md @@ -277,7 +277,7 @@ curl https://127.0.0.1:7000/api/get/item --header "Authorization: iHc1_ChZxj1aXm **HTTP Status Code** : `200` ```json { - "content": "b'dsvcdsvcdsc vvvv'", + "content": "dsvcdsvcdsc vvvv", "date": "20190726", "id": "submitted/2019/07/26/3efb8a79-08e9-4776-94ab-615eb370b6d4.gz", "lines": { diff --git a/var/www/modules/restApi/Flask_restApi.py b/var/www/modules/restApi/Flask_restApi.py index 719d307d..3f363555 100644 --- a/var/www/modules/restApi/Flask_restApi.py +++ b/var/www/modules/restApi/Flask_restApi.py @@ -182,7 +182,7 @@ def get_item_id_basic(item_id): - Example:: - curl -k https://127.0.0.1:7000/api/get/item/default --header "Authorization: iHc1_ChZxj1aXmiFiF1mkxxQkzawwriEaZpPqyTQj " -H "Content-Type: application/json --data @input.json -X POST" + curl -k https://127.0.0.1:7000/api/get/item/default/ --header "Authorization: iHc1_ChZxj1aXmiFiF1mkxxQkzawwriEaZpPqyTQj " -H "Content-Type: application/json --data @input.json -X POST" - Expected Success Response::