Package com.mockey.model

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


          "Sets a service plan given a valid plan_id parameter."));
      reqAttributeAction.addFieldValues(new ApiDocFieldValue(API_SETPLAN_PARAMETER_ACTION_VALUE_SET_AS_DEFAULT_PLAN,
          "Sets a service plan to be set as the default state upon a Mockey startup. Set " + API_SETPLAN_PARAMETER_PLAN_ID
          +" to 'none' if no desired default plan is to be set."));
     
      apiDocRequest.addAttribute(reqAttributeAction);

      // Parameter - 'plan_id'
      ApiDocAttribute reqAttributePlanId = new ApiDocAttribute();
      reqAttributePlanId.setFieldName(API_SETPLAN_PARAMETER_PLAN_ID);
      reqAttributePlanId.addFieldValues(new ApiDocFieldValue("[identifier]", "A valid service plan identifier."));
View Full Code Here


      // Parameter - 'plan_id'
      ApiDocAttribute reqAttributePlanId = new ApiDocAttribute();
      reqAttributePlanId.setFieldName(API_SETPLAN_PARAMETER_PLAN_ID);
      reqAttributePlanId.addFieldValues(new ApiDocFieldValue("[identifier]", "A valid service plan identifier."));
      reqAttributePlanId.setExample("123");
      apiDocRequest.addAttribute(reqAttributePlanId);

      // Parameter - 'service_plan_name'
      ApiDocAttribute reqAttributePlanName = new ApiDocAttribute();
      reqAttributePlanName.setFieldName(API_SET_SAVE_OR_UPDATE_PARAMETER_PLAN_NAME);
      reqAttributePlanName
View Full Code Here

      reqAttributePlanName
          .addFieldValues(new ApiDocFieldValue(
              "[string]",
              "The service plan name needed to create or save/update. If plan_id not provided, then this value is used to locate the service plan for setting or updating."));
      reqAttributePlanName.setExample("The Gold Service Plan");
      apiDocRequest.addAttribute(reqAttributePlanName);

      // Parameter - 'service_plan_name'
      ApiDocAttribute reqAttributePlanTag = new ApiDocAttribute();
      reqAttributePlanTag.setFieldName(API_SET_SAVE_OR_UPDATE_PARAMETER_PLAN_TAG);
      reqAttributePlanTag.addFieldValues(new ApiDocFieldValue("[string]", "The service plan tag(s)."));
View Full Code Here

      // Parameter - 'service_plan_name'
      ApiDocAttribute reqAttributePlanTag = new ApiDocAttribute();
      reqAttributePlanTag.setFieldName(API_SET_SAVE_OR_UPDATE_PARAMETER_PLAN_TAG);
      reqAttributePlanTag.addFieldValues(new ApiDocFieldValue("[string]", "The service plan tag(s)."));
      reqAttributePlanTag.setExample("Tag1 Tag2 Tag3");
      apiDocRequest.addAttribute(reqAttributePlanTag);

      // Parameter - 'type'
      ApiDocAttribute reqAttributeType = new ApiDocAttribute();
      reqAttributeType.setFieldName(API_SETPLAN_PARAMETER_TYPE);
      reqAttributeType.addFieldValues(new ApiDocFieldValue("json",
View Full Code Here

      // Parameter - 'type'
      ApiDocAttribute reqAttributeType = new ApiDocAttribute();
      reqAttributeType.setFieldName(API_SETPLAN_PARAMETER_TYPE);
      reqAttributeType.addFieldValues(new ApiDocFieldValue("json",
          "Response will be in JSON. Any other value for 'type' is undefined and you may experience a 302."));
      apiDocRequest.addAttribute(reqAttributeType);
      apiDocService.setApiRequest(apiDocRequest);

      // Parameter - 'type'
      ApiDocAttribute reqTransientState = new ApiDocAttribute();
      reqTransientState.setFieldName(API_TRANSIENT_STATE);
View Full Code Here

      reqTransientState.setFieldName(API_TRANSIENT_STATE);
      reqTransientState
          .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."));
      apiDocRequest.addAttribute(reqTransientState);
      apiDocService.setApiRequest(apiDocRequest);

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

      ApiDocAttribute reqServiceId = new ApiDocAttribute();
      reqServiceId.setFieldName(ServiceConfigurationAPI.API_SERVICE_ID);
      reqServiceId.addFieldValues(new ApiDocFieldValue("[identifier]",
          "A valid service identifier."));
      reqServiceId.setExample("123");
      apiDocRequest.addAttribute(reqServiceId);

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

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

      // SCHEMA
      ApiDocAttribute reqServiceSchema = new ApiDocAttribute();
      reqServiceSchema
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_SCHEMA);
View Full Code Here

          .setFieldName(ServiceConfigurationAPI.API_SERVICE_SCHEMA);
      reqServiceSchema.addFieldValues(new ApiDocFieldValue("[string]",
          "A valid JSON Schema definition."));
      reqServiceSchema
          .setExample("{\"type\":\"object\",\"$schema\": \"http://json-schema.org/draft-03/schema\",\"id\": \"#\",\"required\":false,\"properties\":{ \"address\": { \"type\":\"object\", \"id\": \"address\", \"required\":false, \"properties\":{ \"streetAddress\": { \"type\":\"string\", \"id\": \"streetAddress\", \"required\":false } } } }}");
      apiDocRequest.addAttribute(reqServiceSchema);

      ApiDocAttribute reqServiceSchemaEnableFlag = new ApiDocAttribute();
      reqServiceSchemaEnableFlag
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_SCHEMA_ENABLE_FLAG);
      reqServiceSchemaEnableFlag
View Full Code Here

      reqServiceSchemaEnableFlag
          .addFieldValues(new ApiDocFieldValue(
              "[boolean]",
              "Set to true for the service to validate each Service Scenario JSON response with the provided JSON Schema."));
      reqServiceSchemaEnableFlag.setExample("true");
      apiDocRequest.addAttribute(reqServiceSchemaEnableFlag);

      // REQUEST INSPECTOR RULES
      ApiDocAttribute reqInspectorRules = new ApiDocAttribute();
      reqInspectorRules
          .setFieldName(ServiceConfigurationAPI.API_SERVICE_REQUEST_INSPECTOR_RULES);
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.