Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deliver] ES #119

Closed
hahwul opened this issue Sep 28, 2023 · 1 comment
Closed

[Deliver] ES #119

hahwul opened this issue Sep 28, 2023 · 1 comment
Assignees
Labels
💌 deliver Issue for Deliver
Milestone

Comments

@hahwul
Copy link
Member

hahwul commented Sep 28, 2023

No description provided.

@hahwul hahwul added the 💌 deliver Issue for Deliver label Sep 28, 2023
@hahwul hahwul added this to the v0.9.0 milestone Sep 28, 2023
@hahwul hahwul self-assigned this Sep 28, 2023
@hahwul
Copy link
Member Author

hahwul commented Sep 28, 2023

Test

noir -b ./sinatra/ --send-es http://localhost:9200/noir/url
# [*] Detecting technologies to base directory.
# ...
# [*] Sending requests to Elasticsearch.
# [I] Finally identified 2 endpoints.
# [*] Generating Report.
# GET /?query=
# POST /update

In ES (http://localhost:9200/noir/_search)

{
  "took": 13,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "noir",
        "_type": "url",
        "_id": "fsSY24oBVc20SJLxx5bb",
        "_score": 1,
        "_source": {
          "endpoints": [
            {
              "url": "/",
              "method": "GET",
              "params": [
                {
                  "name": "query",
                  "value": "",
                  "param_type": "query"
                }
              ],
              "headers": [],
              "protocol": "http"
            },
            {
              "url": "/update",
              "method": "POST",
              "params": [],
              "headers": [],
              "protocol": "http"
            }
          ]
        }
      }
    ]
  }
}

hahwul added a commit that referenced this issue Sep 28, 2023
hahwul added a commit that referenced this issue Sep 28, 2023
@hahwul hahwul closed this as completed Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💌 deliver Issue for Deliver
Projects
None yet
Development

No branches or pull requests

1 participant