def new
      @project = Project.find params[:project_id]
      @api = @project.apis.new
      @parameters = @api.parameters.build
      @api.success_responses.build
      @api.failure_responses.build
  
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @api }
      end
    end
def new
      @project = Project.find params[:project_id]
      @api = @project.apis.new
      @parameters = @api.parameters.build
      @api.success_responses.build
      @api.failure_responses.build
  
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @api }
      end
    end
GET /apis/new
 GET /apis/new.json