Skip to content

Anzo52/maigret-adapter-anzo52

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maigret-adapter

Connecting Maigret with other tools.

Usage

./run.py

You will start maigret-adapter service at localhost:8080. Now you can use API interface for maigret:

curl localhost:8080 -s | jq                                                               ~
{
  "maigret-adapter": "0.0.1",
  "usage": "/check/{service}/{site}/{identifier}",
  "services": [
    "test_service",
    "mailcat"
  ]
}

Testing

You have to install Maigret first.

./test.sh

How to register you service

  1. Use integrations/test_adapter.py as a template.

  2. Add import to integrations/__init__.py

  3. Register adapter in run.py

  4. Run server and make health-check of your service with the name used in run.py:

curl localhost:8080/sites/<NAME> -v

Scheme

Maigret-adapter scheme