Merge pull request #101 from deralexxx/patch-4

POST restfulSearch
pull/102/head
Alexandre Dulaunoy 2018-02-28 14:54:35 +01:00 committed by GitHub
commit 1470bc7d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -1332,7 +1332,22 @@ https://<misp url>/attributes/restSearch/json/[value]/[type]/[category]/[org]/[t
If you include "includeEventUuid":1" in the json request, it will give you the event_uuid as a result as well. If you include "includeEventUuid":1" in the json request, it will give you the event_uuid as a result as well.
Be careful if you GET the /attributes/restSearch/json/ without an value, it will return all attributes.
### POST /attributes/restSearch
Do not use that function with GET!
#### Example
~~~~
curl -X POST -k -H 'Accept: application/json' -H 'Authorization: API Key' -H 'Content-Type: application/json' -i 'https://URL/attributes/restSearch' --data '{"value":"foobar"}'
~~~~
~~~~json
{
"response": []
}
~~~~
## RESTful searches with XML result export ## RESTful searches with XML result export