You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: zones_controller.rb
    path of file: ./repos/solidus/api/app/controllers/spree/api
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Spree
  module Api
    class ZonesController < Spree::Api::BaseController
     
    
      def create
        authorize! :create, Zone
        @zone = Spree::Zone.new(zone_params)
        if @zone.save
          respond_with(@zone, status: 201, default_template: :show)
        else
          invalid_resource!(@zone)
        end