Class GlobalVarController

java.lang.Object
com.chutneytesting.globalvar.api.GlobalVarController

@RestController @CrossOrigin(origins="*") @RequestMapping("/api/ui/globalvar/v1") public class GlobalVarController extends Object
  • Constructor Details

  • Method Details

    • list

      @PreAuthorize("hasAuthority(\'GLOBAL_VAR_READ\')") @GetMapping(path="", produces="application/json") public Set<String> list()
    • save

      @PreAuthorize("hasAuthority(\'GLOBAL_VAR_WRITE\')") @PostMapping(path="/{fileName}", consumes="application/json", produces="application/json") public void save(@PathVariable("fileName") String fileName, @RequestBody GlobalVarController.TextDto textContent)
    • delete

      @PreAuthorize("hasAuthority(\'GLOBAL_VAR_WRITE\')") @DeleteMapping(path="/{fileName}") public void delete(@PathVariable("fileName") String fileName)
    • getFile

      @PreAuthorize("hasAuthority(\'GLOBAL_VAR_READ\')") @GetMapping(path="/{fileName}", produces="application/json") public GlobalVarController.TextDto getFile(@PathVariable("fileName") String fileName)