Class RoleProxyApiController
- java.lang.Object
-
- ru.foodtechlab.lib.auth.integration.proxy.api.role.v1.controllers.RoleProxyApiController
-
- All Implemented Interfaces:
ru.foodtechlab.lib.auth.service.facade.role.endpoints.CreateRoleEndpoint,ru.foodtechlab.lib.auth.service.facade.role.endpoints.DeleteRoleEndpoint,ru.foodtechlab.lib.auth.service.facade.role.endpoints.FindRoleByIdEndpoint,ru.foodtechlab.lib.auth.service.facade.role.endpoints.FindRoleByNameEndpoint,ru.foodtechlab.lib.auth.service.facade.role.endpoints.FindRolesEndpoint,ru.foodtechlab.lib.auth.service.facade.role.endpoints.UpdateRoleEndpoint,ru.foodtechlab.lib.auth.service.facade.role.resources.RoleResource
public class RoleProxyApiController extends Object implements ru.foodtechlab.lib.auth.service.facade.role.resources.RoleResource
-
-
Constructor Summary
Constructors Constructor Description RoleProxyApiController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse>create(ru.foodtechlab.lib.auth.service.facade.role.dto.requests.CreateRoleRequest createRoleRequest)com.rcore.rest.api.commons.response.OkApiResponsedelete(String id)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse>find(String id)com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.commons.port.dto.SearchResult<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse>>find(ru.foodtechlab.lib.auth.service.facade.role.dto.requests.SearchRoleWithFiltersRequest request)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse>findByCode(String code)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse>update(String id, ru.foodtechlab.lib.auth.service.facade.role.dto.requests.UpdateRoleRequest request)
-
-
-
Method Detail
-
create
@PostMapping("/api/v1/roles") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse> create(@RequestBody ru.foodtechlab.lib.auth.service.facade.role.dto.requests.CreateRoleRequest createRoleRequest)- Specified by:
createin interfaceru.foodtechlab.lib.auth.service.facade.role.endpoints.CreateRoleEndpoint
-
find
@GetMapping("/api/v1/roles/{id}") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse> find(@PathVariable String id)- Specified by:
findin interfaceru.foodtechlab.lib.auth.service.facade.role.endpoints.FindRoleByIdEndpoint
-
find
@GetMapping("/api/v1/roles") public com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.commons.port.dto.SearchResult<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse>> find(@ModelAttribute ru.foodtechlab.lib.auth.service.facade.role.dto.requests.SearchRoleWithFiltersRequest request)- Specified by:
findin interfaceru.foodtechlab.lib.auth.service.facade.role.endpoints.FindRolesEndpoint
-
update
@PutMapping("/api/v1/roles/{id}") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse> update(@PathVariable String id, @RequestBody ru.foodtechlab.lib.auth.service.facade.role.dto.requests.UpdateRoleRequest request)- Specified by:
updatein interfaceru.foodtechlab.lib.auth.service.facade.role.endpoints.UpdateRoleEndpoint
-
findByCode
@GetMapping("/api/v1/roles/find-by-code") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.role.dto.responses.RoleResponse> findByCode(@RequestParam String code)- Specified by:
findByCodein interfaceru.foodtechlab.lib.auth.service.facade.role.endpoints.FindRoleByNameEndpoint
-
delete
@DeleteMapping(value="/api/v1/roles/{id}", produces="application/json") public com.rcore.rest.api.commons.response.OkApiResponse delete(@PathVariable String id)- Specified by:
deletein interfaceru.foodtechlab.lib.auth.service.facade.role.endpoints.DeleteRoleEndpoint
-
-