2.1. Rule

Rule resource is used to serve the Yara rules to rastrea2r client
curl -i -X GET \
  -H "Authorization:Basic [BASE64 String of (username:password)]" \
  'http://localhost:5000/rastrea2r/api/v1.0/rule?rulename=example.yara'
  • Notes:

    Currently only basic Authentication is supported. Ensure that the user has been created in the server prior to accessing the API’s.

2.2. Results

Results Resource is used to store the results from rastrea2r client
  • URL

    /rastrea2r/api/v1.0/results

  • Method:

    POST

  • URL Params

    Required:

    NA

  • Data Params

    <Payload must be a Valid JSON> {“key1”:”value1”, “key2”:”value2”}

  • Success Response:

    • Code: 200 Content:

      `{

      “message”: “Results Saved Successfully”, “status”: “200” }`

  • Error Response:

    OR

    OR

  • Sample Call:

curl -i -X POST \
-H "Content-Type:application/json" \
-H "Authorization:Basic [BASE64 String of (username:password)]" \
-d \
'{"Key1":"Value1", "Key2":"Value2"}' \
'http://localhost:5000/rastrea2r/api/v1.0/results'
  • Notes:

    Currently only basic Authentication is supported. Ensure that the user has been created in the server prior to accessing the API’s.