API set up to handle JSON on the Rails side