How to build a RESTful API in Slim 3 - Part 2: Creating application endpoints