completed http json api server exercise