Uses the new endpoint.json syntax

cc/ @BDQ