clarifiaction for json rest searches

I was struggling to find the right endpoint to simply search for events that match a given value, thanks to gitter I was able to solve my issue and I would like that to be covered in the documentation as well.
pull/82/head
Alexander J 2018-01-11 17:36:07 +01:00 committed by GitHub
parent 142897178a
commit 09158e4ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -592,6 +592,18 @@ For example, to retrieve all attributes for event #5, including non IDS marked a
https://<misp url>/attributes/text/download/all/null/5/true
~~~~
## RESTful searches with JSON result
It is possible to search the database for attributes based on a list of criteria
To return an event with all of its attributes, relations, shadowAttributes, use the following syntax:
~~~~
https://<misp url>/attributes/restSearch/json/[value]/[type]/[category]/[org]/[tag]/[quickfilter]/[from]/[to]/[last]/[eventid]/[withAttachments]/[metadata]/[uuid]
~~~~
## RESTful searches with XML result export
It is possible to search the database for attributes based on a list of criteria.