api: implmented api view.