mirror of https://github.com/CIRCL/AIL-framework
fix: typo
parent
28ece38d82
commit
fb6324d4e6
|
@ -990,9 +990,11 @@ Get crawled domain by date-range and status (default status = *UP*)
|
||||||
- `date_from`
|
- `date_from`
|
||||||
- date from
|
- date from
|
||||||
- *str - YYYYMMDD*
|
- *str - YYYYMMDD*
|
||||||
|
- mandatory
|
||||||
- `date_to`
|
- `date_to`
|
||||||
- date to
|
- date to
|
||||||
- *str - YYYYMMDD*
|
- *str - YYYYMMDD*
|
||||||
|
- mandatory
|
||||||
|
|
||||||
#### JSON response
|
#### JSON response
|
||||||
- `domain_type`
|
- `domain_type`
|
||||||
|
@ -1037,17 +1039,10 @@ curl https://127.0.0.1:7000/api/v1/get/crawled/domain/list --header "Authorizati
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**HTTP Status Code** : `404`
|
|
||||||
|
|
||||||
```json
|
|
||||||
({"status": "error", "reason": "Domain not found"}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Get min domain metadata: `api/v1/get/domain/status/minimal`<a name="get_domain_status_minimal"></a>
|
||||||
### Get min domain metadata: `api/v1/get/domain/metadata/minimal`<a name="get_domain_metadata_minimal"></a>
|
|
||||||
|
|
||||||
#### Description
|
#### Description
|
||||||
Get min domain metadata
|
Get min domain metadata
|
||||||
|
@ -1073,7 +1068,7 @@ Get min domain metadata
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
```
|
```
|
||||||
curl https://127.0.0.1:7000/api/v1/get/domain/metadata/minimal --header "Authorization: iHc1_ChZxj1aXmiFiF1mkxxQkzawwriEaZpPqyTQj " -H "Content-Type: application/json" --data @input.json -X POST
|
curl https://127.0.0.1:7000/api/v1/get/domain/status/minimal --header "Authorization: iHc1_ChZxj1aXmiFiF1mkxxQkzawwriEaZpPqyTQj " -H "Content-Type: application/json" --data @input.json -X POST
|
||||||
```
|
```
|
||||||
|
|
||||||
#### input.json Example
|
#### input.json Example
|
||||||
|
|
|
@ -469,9 +469,9 @@ def get_item_cryptocurrency_bitcoin():
|
||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
# # # # # # # # # # # # # # DOMAIN # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # DOMAIN # # # # # # # # # # # # # # # # #
|
||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
@restApi.route("api/v1/get/domain/metadata/minimal", methods=['POST'])
|
@restApi.route("api/v1/get/domain/status/minimal", methods=['POST'])
|
||||||
@token_required('analyst')
|
@token_required('analyst')
|
||||||
def get_domain_metadata_minimal():
|
def get_domain_status_minimal():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
domain = data.get('domain', None)
|
domain = data.get('domain', None)
|
||||||
# error handler
|
# error handler
|
||||||
|
@ -482,9 +482,9 @@ def get_domain_metadata_minimal():
|
||||||
res[0]['domain'] = domain
|
res[0]['domain'] = domain
|
||||||
return create_json_response(res[0], res[1])
|
return create_json_response(res[0], res[1])
|
||||||
|
|
||||||
@restApi.route("api/v1/get/domain/list", methods=['POST'])
|
@restApi.route("api/v1/get/crawled/domain/list", methods=['POST'])
|
||||||
@token_required('analyst')
|
@token_required('analyst')
|
||||||
def get_domain_list():
|
def get_crawled_domain_list():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
res = get_mandatory_fields(data, ['date_from', 'date_to'])
|
res = get_mandatory_fields(data, ['date_from', 'date_to'])
|
||||||
if res:
|
if res:
|
||||||
|
|
Loading…
Reference in New Issue