Skip to content

It is an simple JAVA API design using Spring Boot, Tomcat and "Json Web Token (Jwt)" based authentication. I used Amazon Web Service (AWS) and Mongodb to store my data. I implemented different types of Mapping eg. @GetMapping, @PostMapping, @PutMapping and @DeleteMapping

License

Notifications You must be signed in to change notification settings

TusharMalakar/JavaSpringBootMicroServices-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaAPI_SpringBoot Micro-services :

It is an simple JAVA API design using Spring Boot, Tomcat and "Json Web Token (Jwt)" based authentication.  I used Amazon Web Service (AWS) and Mongodb to store my data. 

Licensed to the Apache Software Foundation

Spring Security with JWT Authentication

Secure Hash Algorithm (SHA-512)

Encrypting & Decrypting soft data : Salt algorithm to encrypte and decrypte

Mapping : @GetMapping, @PostMapping, @PutMapping and @DeleteMapping

#==========================> TRUN ON YOUR DB<===================================

Endpoints:

0. Welocome page:['GET']
	loacalhost:8080
	return/response :  welome to Java Microservices {numberOfDocuments}.

1.  GET request to log in to exiting account:['GET']
		   
	
   If you run on loacalhost:8080
   http://localhost:8080/login?username=testuser1&password=password
	
	return {"success":true,"token":"You successfully logged in!"}
		   or {"success":false,"token":"error message"}


2.  POST request to create a new account:['POST']
	
	http://localhost:8080/createAccount 
		 accountBody =>  {
			    	"username":"testuser1",
			    	"password":"password"
		    		}
		return/response => {
			"success": true,
		        "token": "A new account has been created"
		}

	
3. update user password: ['PUT']
	http://localhost:8080/update_password 
		 accountBody =>  {
			    	"username":"testuser1",
			    	"password":"new_passowrd"
		    		}
		return/response => {
			"success": true,
		        "token": "password was successfully changed"
		}

About

It is an simple JAVA API design using Spring Boot, Tomcat and "Json Web Token (Jwt)" based authentication. I used Amazon Web Service (AWS) and Mongodb to store my data. I implemented different types of Mapping eg. @GetMapping, @PostMapping, @PutMapping and @DeleteMapping

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages