add api directory controller (move to hypermedia api)