/** * Creates a user-friendly names for given action context as the request body schema. */ public static String getSchemaName(final Resource singleResource, final ActionType actionEntry) { return CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, Joiner.on("_").join(actionEntry.name().toLowerCase(), getUniqueName(singleResource))); }
/** * Creates a user-friendly names for given response context as the response body schema. */ public static String getSchemaName(final Resource singleResource, final ActionType actionEntry, final String responseEntry) { return CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, Joiner.on("_").join(actionEntry.name().toLowerCase(),// getUniqueName(singleResource).toLowerCase(), responseEntry.toLowerCase(Locale.US), "response")); }
public ActionMethod(ReqSpecField reqFieldName, RespSpecField respFieldName, UriConst uriConst, Action action) { this.reqFieldName = reqFieldName.name(); this.respFieldName = respFieldName.name(); this.uriConst = uriConst.name(); this.action = action; this.httpMethod = action.getType().name().toLowerCase(); this.name = defaultIfEmpty(action.getDisplayName(), httpMethod); }
static Usage.Action actionUsage(Usage usage, Action action) { return usage.resource(action.getResource().getUri()).action(action.getType().name()); }
Operation operation = new Operation(); operation.setDescription(action.getDescription()); operation.setMethod(entry.getKey().name().toString());
Operation operation = new Operation(); operation.setDescription(action.getDescription()); operation.setMethod(entry.getKey().name().toString());
Operation operation = new Operation(); operation.setDescription(action.getDescription()); operation.setMethod(entry.getKey().name().toString());
Operation operation = new Operation(); operation.setDescription(action.getDescription()); operation.setMethod(entry.getKey().name().toString());
Operation operation = new Operation(); operation.setDescription(action.getDescription()); operation.setMethod(entry.getKey().name().toString());