BAEL-2039: chaos monkey for spring boot (#4889)

This commit is contained in:
Adrian Precub
2018-08-10 07:40:47 +03:00
committed by Grzegorz Piwowarek
parent e7485a1813
commit e80c93b72b
5 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package com.baeldung.chaosmonkey.controller;
import com.baeldung.chaosmonkey.service.PermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* Created by adi on 8/2/18.
*/
@RestController
@RequestMapping("/permissions")
public class PermissionsController {
@Autowired private PermissionsService permissionsService;
@GetMapping
public List<String> getAllPermissions() {
return permissionsService.getAllPermissions();
}
}