app: extend the api decorator to support naming of non-Object JSON POSTs.