mirror of https://github.com/CIRCL/AIL-framework
fix: [api doc] typo
parent
4c20f58a52
commit
98fb6ecef7
|
@ -85,6 +85,7 @@ def get_item(request_dict):
|
||||||
|
|
||||||
content = request_dict.get('content', False)
|
content = request_dict.get('content', False)
|
||||||
if content:
|
if content:
|
||||||
|
# UTF-8 outpout, # TODO: use base64
|
||||||
dict_item['content'] = get_item_content(item_id)
|
dict_item['content'] = get_item_content(item_id)
|
||||||
|
|
||||||
lines_info = request_dict.get('lines', False)
|
lines_info = request_dict.get('lines', False)
|
||||||
|
|
|
@ -277,7 +277,7 @@ curl https://127.0.0.1:7000/api/get/item --header "Authorization: iHc1_ChZxj1aXm
|
||||||
**HTTP Status Code** : `200`
|
**HTTP Status Code** : `200`
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"content": "b'dsvcdsvcdsc vvvv'",
|
"content": "dsvcdsvcdsc vvvv",
|
||||||
"date": "20190726",
|
"date": "20190726",
|
||||||
"id": "submitted/2019/07/26/3efb8a79-08e9-4776-94ab-615eb370b6d4.gz",
|
"id": "submitted/2019/07/26/3efb8a79-08e9-4776-94ab-615eb370b6d4.gz",
|
||||||
"lines": {
|
"lines": {
|
||||||
|
|
|
@ -182,7 +182,7 @@ def get_item_id_basic(item_id):
|
||||||
|
|
||||||
- Example::
|
- 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/<item_id> --header "Authorization: iHc1_ChZxj1aXmiFiF1mkxxQkzawwriEaZpPqyTQj " -H "Content-Type: application/json --data @input.json -X POST"
|
||||||
|
|
||||||
- Expected Success Response::
|
- Expected Success Response::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue