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));
}
Aggregations