@GetMapping("/script")
	public List<FileEntry> getScripts(User user, @RequestParam(required = false) String ownerId) {
		if (StringUtils.isNotEmpty(ownerId)) {
			user = userService.getOne(ownerId);
		}

		return fileEntryService.getAll(user)
			.stream()
			.filter(input -> input != null && input.getFileType().getFileCategory() == FileCategory.SCRIPT)
			.collect(toList());
	}
Get all available scripts in JSON format for the current factual user.

@param user    user
@param ownerId owner id
@return JSON containing script's list.
ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestApiController.java