output api trailing slash