Finishing off the rest based api