Structure endpoint/method handling as nested hash