Skip to content

Instantly share code, notes, and snippets.

View gauravat16's full-sized avatar
💭
working

Gaurav Sharma gauravat16

💭
working
View GitHub Profile
package gaurav.examples.redis.bloomfilter.service.impl;
import gaurav.examples.redis.bloomfilter.service.BloomFilterService;
import gaurav.examples.redis.bloomfilter.service.UserNameValidatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserNameValidatorServiceImpl implements UserNameValidatorService {
@gauravat16
gauravat16 / UsernameController.java
Created July 9, 2020 12:21
API for username validation
package gaurav.examples.redis.bloomfilter.controller;
import gaurav.examples.redis.bloomfilter.service.UserNameValidatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;