POST restfulSearch

to warn people not make a mistake
pull/101/head
Alexander J 2018-02-28 14:53:33 +01:00 committed by GitHub
parent 579d734cae
commit 7d444e2674
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