add frontend api endpoint documentation