Fixing formatting issues in Spree endpoint