* Notes: * Output-Formats: [application/xml, application/json] */ $app->GET('/user/{username}', function ($request, $response, $args) { $response->write('How about implementing getUserByName as a GET method ?'); return $response; }); /** * PUT updateUser * Summary: Updated user * Notes: This can only be done by the logged in user. * Output-Formats: [application/xml, application/json] */ $app->PUT('/user/{username}', function ($request, $response, $args) { $body = $request->getParsedBody(); $response->write('How about implementing updateUser as a PUT method ?'); return $response; }); /** * DELETE deleteUser * Summary: Delete user * Notes: This can only be done by the logged in user. * Output-Formats: [application/xml, application/json] */ $app->DELETE('/user/{username}', function ($request, $response, $args) { $response->write('How about implementing deleteUser as a DELETE method ?'); return $response; }); /** * GET getInventory * Summary: Returns pet inventories by status