marian-craciunescu / urlenricher

microservice for webcategorization using (for now) Brightcloud Rest Api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

urlenricher

Build Status Go Report Card codecov

Purpose:

expose a REST api for URL repudiation.

One connecter is already written(it uses the Brigthcloud api BRIGTHCLOUD API

USAGE

go get marian-craciunescu/urlenricher
cd $GOPATH/src/github.com/marian-craciunescu/urlenricher 
go build 

./urlenricher --api_key=BrightcloudApiKey --api_secret=BrightcloudApiSecret

EXAMPLE

curl -XGET http://127.0.0.1:8081/resolve?target=www.google.com

#Response is the format
{
  "Address": "www.google.com",
  "ReputationPercentage": 81,
  "Categories": [
    {
      "ID": 50,
      "Name": "Search Engines",
      "Group": "Productivity",
      "Confidence": 100
    }
  ],
  "SubdomainNumber": 0,
  "Ts": "2018-09-06T13:29:49.06775243Z"
}

ROADMAP

  1. Increase Code coverage
  2. Add more connectors.
  3. Add swagger for the REST api description
  4. add golangci.com and codecov.io for CI/CD

About

microservice for webcategorization using (for now) Brightcloud Rest Api

License:GNU Lesser General Public License v3.0


Languages

Language:Go 98.5%Language:Shell 1.0%Language:Dockerfile 0.5%