POST documents implementation

Many refactor
WHIP All the filtering