private static void fillRwadefOperation(Operation swaggerOperation, Resource resource, Contract contract, String methodName, List<String> produces, List<String> consumes, Map<String, Object> parameters) { if (swaggerOperation == null) { return; } org.restlet.ext.platform.internal.model.Operation operation = new org.restlet.ext.platform.internal.model.Operation(); operation.addProduces(produces); operation.addProduces(swaggerOperation.getProduces()); operation.addConsumes(consumes); operation.addConsumes(swaggerOperation.getConsumes()); operation.setDescription(swaggerOperation.getDescription()); operation.setMethod(methodName); operation.setName(swaggerOperation.getOperationId()); fillRwadefParameters(swaggerOperation, operation, resource, parameters); fillRwadefResponses(swaggerOperation, operation, contract, parameters); fillInputPayload(swaggerOperation, operation, contract); resource.getOperations().add(operation); }
private static void fillRwadefOperation(Operation swaggerOperation, Resource resource, Contract contract, String methodName, List<String> produces, List<String> consumes, Map<String, Object> parameters) { if (swaggerOperation == null) { return; } org.restlet.ext.platform.internal.model.Operation operation = new org.restlet.ext.platform.internal.model.Operation(); operation.addProduces(produces); operation.addProduces(swaggerOperation.getProduces()); operation.addConsumes(consumes); operation.addConsumes(swaggerOperation.getConsumes()); operation.setDescription(swaggerOperation.getDescription()); operation.setMethod(methodName); operation.setName(swaggerOperation.getOperationId()); fillRwadefParameters(swaggerOperation, operation, resource, parameters); fillRwadefResponses(swaggerOperation, operation, contract, parameters); fillInputPayload(swaggerOperation, operation, contract); resource.getOperations().add(operation); }
private static void fillRwadefOperation(Operation swaggerOperation, Resource resource, Contract contract, String methodName, List<String> produces, List<String> consumes, Map<String, Object> parameters) { if (swaggerOperation == null) { return; } org.restlet.ext.platform.internal.model.Operation operation = new org.restlet.ext.platform.internal.model.Operation(); operation.addProduces(produces); operation.addProduces(swaggerOperation.getProduces()); operation.addConsumes(consumes); operation.addConsumes(swaggerOperation.getConsumes()); operation.setDescription(swaggerOperation.getDescription()); operation.setMethod(methodName); operation.setName(swaggerOperation.getOperationId()); fillRwadefParameters(swaggerOperation, operation, resource, parameters); fillRwadefResponses(swaggerOperation, operation, contract, parameters); fillInputPayload(swaggerOperation, operation, contract); resource.getOperations().add(operation); }
private static void fillRwadefOperation(Operation swaggerOperation, Resource resource, Contract contract, String methodName, List<String> produces, List<String> consumes, Map<String, Object> parameters) { if (swaggerOperation == null) { return; } org.restlet.ext.platform.internal.model.Operation operation = new org.restlet.ext.platform.internal.model.Operation(); operation.addProduces(produces); operation.addProduces(swaggerOperation.getProduces()); operation.addConsumes(consumes); operation.addConsumes(swaggerOperation.getConsumes()); operation.setDescription(swaggerOperation.getDescription()); operation.setMethod(methodName); operation.setName(swaggerOperation.getOperationId()); fillRwadefParameters(swaggerOperation, operation, resource, parameters); fillRwadefResponses(swaggerOperation, operation, contract, parameters); fillInputPayload(swaggerOperation, operation, contract); resource.getOperations().add(operation); }