mirror of https://github.com/MISP/MISP
new: [API] Added attribute_timestamp flag to attributes/restSearch
Explanation of the 4 timestamp filters: timestamp: Filters on attribute AND event timestamp event_timestamp: Filters on event timestamp attribute_timestamp: Filters on attribute timestamp publish_timestamp: Filters on event.publish_timestamppull/5404/head
parent
72c59430ae
commit
11ee95aeb3
|
@ -1868,7 +1868,7 @@ class AttributesController extends AppController
|
|||
{
|
||||
$paramArray = array(
|
||||
'value' , 'type', 'category', 'org', 'tags', 'from', 'to', 'last', 'eventid', 'withAttachments', 'uuid', 'publish_timestamp',
|
||||
'timestamp', 'enforceWarninglist', 'to_ids', 'deleted', 'includeEventUuid', 'event_timestamp', 'threat_level_id', 'includeEventTags',
|
||||
'timestamp', 'attribute_timestamp','enforceWarninglist', 'to_ids', 'deleted', 'includeEventUuid', 'event_timestamp', 'threat_level_id', 'includeEventTags',
|
||||
'includeProposals', 'returnFormat', 'published', 'limit', 'page', 'requested_attributes', 'includeContext', 'headerless',
|
||||
'includeWarninglistHits', 'attackGalaxy', 'object_relation', 'includeSightings', 'includeCorrelations', 'includeDecayScore',
|
||||
'decayingModel', 'excludeDecayed', 'modelOverrides', 'includeFullModel', 'score'
|
||||
|
|
|
@ -40,7 +40,7 @@ class RestResponseComponent extends Component
|
|||
'restSearch' => array(
|
||||
'description' => "Search MISP using a list of filter parameters and return the data in the selected format. The search is available on an event and an attribute level, just select the scope via the URL (/events/restSearch vs /attributes/restSearch). Besides the parameters listed, other, format specific ones can be passed along (for example: requested_attributes and includeContext for the CSV export). This API allows pagination via the page and limit parameters.",
|
||||
'mandatory' => array('returnFormat'),
|
||||
'optional' => array('page', 'limit', 'value' , 'type', 'category', 'org', 'tags', 'date', 'last', 'eventid', 'withAttachments', 'uuid', 'publish_timestamp', 'timestamp', 'enforceWarninglist', 'to_ids', 'deleted', 'includeEventUuid', 'includeEventTags', 'event_timestamp', 'threat_level_id', 'eventinfo', 'includeProposals', 'includeDecayScore', 'includeFullModel', 'decayingModel', 'excludeDecayed', 'score'),
|
||||
'optional' => array('page', 'limit', 'value' , 'type', 'category', 'org', 'tags', 'date', 'last', 'eventid', 'withAttachments', 'uuid', 'publish_timestamp', 'timestamp', 'attribute_timestamp', 'enforceWarninglist', 'to_ids', 'deleted', 'includeEventUuid', 'includeEventTags', 'event_timestamp', 'threat_level_id', 'eventinfo', 'includeProposals', 'includeDecayScore', 'includeFullModel', 'decayingModel', 'excludeDecayed', 'score'),
|
||||
'params' => array()
|
||||
)
|
||||
),
|
||||
|
@ -842,7 +842,14 @@ class RestResponseComponent extends Component
|
|||
'type' => 'integer',
|
||||
'operators' => array('equal', 'not_equal'),
|
||||
'validation' => array('min' => 0, 'step' => 1),
|
||||
'help' => __('The timestamp at which the event was published')
|
||||
'help' => __('The timestamp at which the event was last modified')
|
||||
),
|
||||
'attribute_timestamp' => array(
|
||||
'input' => 'number',
|
||||
'type' => 'integer',
|
||||
'operators' => array('equal', 'not_equal'),
|
||||
'validation' => array('min' => 0, 'step' => 1),
|
||||
'help' => __('The timestamp at which the attribute was last modified')
|
||||
),
|
||||
'eventid' => array(
|
||||
'input' => 'number',
|
||||
|
|
Loading…
Reference in New Issue