@RequestMapping(value = "/{type}/{name}", method = RequestMethod.POST, consumes = "application/octet-stream")
	@ResponseStatus(HttpStatus.CREATED)
	@ResponseBody
	public ModuleDefinitionResource upload(
			@PathVariable("type") ModuleType type,
			@PathVariable("name") String name,
			@RequestParam(value = "force", defaultValue = "false") boolean force,
			@RequestBody byte[] bytes) {
		ModuleDefinition moduleDefinition = moduleDefinitionService.upload(name, type, bytes, force);
		ModuleDefinitionResource resource = simpleAssembler.toResource(moduleDefinition);
		return resource;
	}
Create (install) a new module, by way of uploading a module archive.

@param type The type of the module to create (required)
@param name The name of the module to create (required)
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/ModulesController.java