Search in sources :

Example 1 with ApiKeyRequestDTO

use of com.nexblocks.authguard.api.dto.requests.ApiKeyRequestDTO in project AuthGuard by AuthGuard.

the class ApiKeysRoute method generate.

public void generate(final Context context) {
    final ApiKeyRequestDTO request = apiKeyRequestBodyHandler.getValidated(context);
    final ApiKeyBO key = apiKeysService.generateApiKey(request.getAppId());
    context.status(201).json(restMapper.toDTO(key));
}
Also used : ApiKeyBO(com.nexblocks.authguard.service.model.ApiKeyBO) ApiKeyRequestDTO(com.nexblocks.authguard.api.dto.requests.ApiKeyRequestDTO)

Aggregations

ApiKeyRequestDTO (com.nexblocks.authguard.api.dto.requests.ApiKeyRequestDTO)1 ApiKeyBO (com.nexblocks.authguard.service.model.ApiKeyBO)1