Set of services for extracting metadata from emails and taking an action on it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
IamTheFij 478a3fb225 Return list of tracking numbers in reverse order. Recent first 1 year ago
..
indexer Return list of tracking numbers in reverse order. Recent first 1 year ago
.dockerignore Update dockerignore for tokendb 1 year ago
.gitignore Add initial indexer apis 1 year ago
Dockerfile Update indexer to write sqlite db to persisted volume 1 year ago
Readme.md Add indexer readme 1 year ago
docker-compose.yml Fix token db path 1 year ago
requirements-dev.txt Add initial indexer apis 1 year ago
requirements.txt Pin versions in indexer 1 year ago

Readme.md

Indexer

Simple service to act as data layer for Email Assitant

Healthcheck

Path: / Returns: OK

Tokens

Path: /token

POST

Accepts JSON representation of a EmailToken

Accepts:

Field Type Example
"subject" String "Your shipping info"
"token" String "123456"
"type" String "SHIPPING"
"metadata" Object (optional) {"carrier": "UPS"}
"disabled" Boolean (optional) false

Returns:

Field Type Example
"success" Boolean true
"token" Token Object {"id": 1, ... }

GET

Path: /token Returns all Token Objects

Parameters:

Parameter Description Example
"filter_type" String token type to filter by SHIPPING

Returns:

Field Type Example
"tokens" List of Token Objects [{"id": 1, ... }, ...]

Path: /token/<int:token_id> Returns Token Object with that ID