hunk.code_window: import org.springframework.beans.factory.annotation.Autowired;
   import org.springframework.core.io.buffer.DataBuffer;
   import org.springframework.core.io.buffer.DataBufferUtils;
   import org.springframework.data.mongodb.core.ReactiveMongoTemplate;
   import org.springframework.data.mongodb.core.convert.MongoConverter;
   import org.springframework.http.codec.multipart.Part;
   import org.springframework.stereotype.Service;
   import org.springframework.util.CollectionUtils;
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit: import org.springframework.data.domain.Sort;
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/OrganizationServiceImpl.java
hunk.type: add
file: const ApiEditor = require("../../../locators/ApiEditor.json");
  const apiwidget = require("../../../locators/apiWidgetslocator.json");
  
  describe("Test curl import flow", function() {
    it("Test curl import flow Run and Delete", function() {
      localStorage.setItem("ApiPaneV2", "ApiPaneV2");
      cy.NavigateToApiEditor();
      cy.get(ApiEditor.curlImage).click({ force: true });
      cy.get("textarea").type("curl -X GET https://mock-api.appsmith.com/users");
      cy.importCurl();
      cy.get("@curlImport").then(response => {
        cy.expect(response.response.body.responseMeta.success).to.eq(true);
        cy.get(apiwidget.ApiName)
          .invoke("text")
          .then(text => {
            const someText = text;
            expect(someText).to.equal(response.response.body.data.name);
          });
      });
      //cy.WaitAutoSave();
      cy.RunAPI();
      cy.ResponseStatusCheck("200 OK");
      cy.get(ApiEditor.formActionButtons).should("be.visible");
      cy.get(ApiEditor.ApiDeleteBtn).click();
      cy.wait("@deleteAction");
      cy.get("@deleteAction").then(response => {
        cy.expect(response.response.body.responseMeta.success).to.eq(true);
      });
      cy.get(ApiEditor.ApiHomePage).should("be.visible");
      cy.get(ApiEditor.formActionButtons).should("not.be.visible");
    });
  });
  