Package com.mockey.model

Examples of com.mockey.model.ApiDocRequest.addAttribute()


      reqInspectorRules
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_REQUEST_INSPECTOR_RULES);
      reqInspectorRules.addFieldValues(new ApiDocFieldValue("[string]",
          "Request evaluation rules in JSON. "));
      reqInspectorRules.setExample("");
      apiDocRequest.addAttribute(reqInspectorRules);

      ApiDocAttribute reqInspectorRulesEnableFlag = new ApiDocAttribute();
      reqInspectorRulesEnableFlag
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_REQUEST_INSPECTOR_RULES_ENABLE_FLAG);
      reqInspectorRulesEnableFlag
View Full Code Here


      reqInspectorRulesEnableFlag
          .addFieldValues(new ApiDocFieldValue(
              "[boolean]",
              "Set to true for the service to validate each incoming request to ensure the appropriate parameters are being passed."));
      reqInspectorRulesEnableFlag.setExample("true");
      apiDocRequest.addAttribute(reqInspectorRulesEnableFlag);

      ApiDocAttribute reqScenarioId = new ApiDocAttribute();
      reqScenarioId
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_SCENARIO_ID);
      reqScenarioId.addFieldValues(new ApiDocFieldValue("[identifier]",
View Full Code Here

      reqScenarioId
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_SCENARIO_ID);
      reqScenarioId.addFieldValues(new ApiDocFieldValue("[identifier]",
          "A valid service scenario identifier."));
      reqScenarioId.setExample("123");
      apiDocRequest.addAttribute(reqScenarioId);

      ApiDocAttribute reqScenarioName = new ApiDocAttribute();
      reqScenarioName
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_NAME);
      reqScenarioName.addFieldValues(new ApiDocFieldValue("[string]",
View Full Code Here

      reqScenarioName
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_NAME);
      reqScenarioName.addFieldValues(new ApiDocFieldValue("[string]",
          "A valid service scenario name."));
      reqScenarioName.setExample("My Service Scenario Name");
      apiDocRequest.addAttribute(reqScenarioName);

      ApiDocAttribute reqHangtime = new ApiDocAttribute();
      reqHangtime
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_HANGTIME);
      reqHangtime.addFieldValues(new ApiDocFieldValue("[int]",
View Full Code Here

      reqHangtime
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_HANGTIME);
      reqHangtime.addFieldValues(new ApiDocFieldValue("[int]",
          "Hang time in milliseconds."));
      reqHangtime.setExample("500");
      apiDocRequest.addAttribute(reqHangtime);

      ApiDocAttribute transientSet = new ApiDocAttribute();
      transientSet
          .setFieldName(ServiceConfigurationAPI.API_TRANSIENT_STATE);
      transientSet
View Full Code Here

      transientSet
          .addFieldValues(new ApiDocFieldValue(
              "[boolean]",
              "If available and set to 'true', then all settings in this call will be in-memory only, not persisted to the file system. Otherwise, state settings will be written to the file system."));
      transientSet.setExample("true");
      apiDocRequest.addAttribute(transientSet);

      ApiDocAttribute reqAttributeAction = new ApiDocAttribute();
      reqAttributeAction
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_RESPONSE_TYPE);
      reqAttributeAction
View Full Code Here

              "Sets service to act as a proxy."));
      reqAttributeAction
          .addFieldValues(new ApiDocFieldValue(
              ServiceConfigurationAPI.API_SERVICE_RESPONSE_TYPE_VALUE_STATIC,
              "Sets service to respond with a static response"));
      apiDocRequest.addAttribute(reqAttributeAction);

      apiDocService.setApiRequest(apiDocRequest);

      // *****************************
      // RESPONSE DEFINITION
View Full Code Here

      reqAttributeAction.setFieldName(BSC.ACTION);
      reqAttributeAction.addFieldValues(new ApiDocFieldValue(API_CONFIGURATION_PARAMETER_ACTION_VALUE_DELETE,
          "Delete all configurations, history, settings, etc., and start with a clean Mockey. "));
      reqAttributeAction.addFieldValues(new ApiDocFieldValue(BSC.INIT,
          "Will delete everything and configure Mockey with the defined file. "));
      apiDocRequest.addAttribute(reqAttributeAction);

      // Parameter - 'file'
      ApiDocAttribute reqAttributeFile = new ApiDocAttribute();
      reqAttributeFile.setFieldName(BSC.FILE);
      reqAttributeFile.addFieldValues(new ApiDocFieldValue("[string]",
View Full Code Here

      ApiDocAttribute reqAttributeFile = new ApiDocAttribute();
      reqAttributeFile.setFieldName(BSC.FILE);
      reqAttributeFile.addFieldValues(new ApiDocFieldValue("[string]",
          "Relative path to the service definitions configuration file. Required if 'action' is 'init'"));
      reqAttributeFile.setExample("../some_file.xml or /Users/someuser/Work/some_file.xml");
      apiDocRequest.addAttribute(reqAttributeFile);

      // Parameter - 'type'
      ApiDocAttribute reqAttributeType = new ApiDocAttribute();
      reqAttributeType.setFieldName(BSC.TYPE);
      reqAttributeType
View Full Code Here

      ApiDocAttribute reqAttributeType = new ApiDocAttribute();
      reqAttributeType.setFieldName(BSC.TYPE);
      reqAttributeType
          .addFieldValues(new ApiDocFieldValue("json",
              "Response will be in JSON. Any other value for 'type' is undefined and you may experience a 302 or get HTML back."));
      apiDocRequest.addAttribute(reqAttributeType);
      apiDocService.setApiRequest(apiDocRequest);

      // Parameter - 'transientState'
      ApiDocAttribute reqAttributeState = new ApiDocAttribute();
      reqAttributeState.setFieldName(BSC.TRANSIENT);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.