Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ponpriya/ms-dev-sample

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ms-dev-sample

Sample Spring Boot Application for Micro Services Developer evaluation

Pre Requisites (Provided by Tech Mahindra)

Developer Tasks

Setup the Local Workspace Environment

* Install JDK 1.8
* Install Eclipse Oxygen
* Configure Eclipse with JDK 1.8
* Create a Fork and Checkout the [GitHub Code](https://github.com/JayaprakashRavindran/ms-dev-sample)
* Start the Spring Boot Application and ensure that it comes up successfully 
	* Sample Url  - /api/accounts url
	* Swagger Url - /index.html
* Once the development is complete, please check the code back into the fork and submit a pull request for the merge

Microservice Development Tasks

* Create a User	Resource Interface and provide the UserResourceImpl for the following functionality
	* CreateUser
		* Create a new user and returns 201 if success
		* If User with that name already exists then return Http error code 409(CONFLICTED) with a custom message "Unable to create. A Account with name already exist"
	* GetUser
		* Returns the User object for a given userId with status as success
		* If User does not exist then return 404 with custom error with message and error code e.g. {"errorMessage": "Account with id 123 not found", "errorCode": "NOT_FOUND" }
* Check List
	* Create necessary Interface, Implementation & Helper classes to attain the functionality
	* Java Doc
	* JUnit Test
	* Swagger Documentation
	* Run the following using Maven
		* Execute all the JUnit Test Cases
		* Create the Spring Boot Fat Jar
	* Start the Spring Boot Fat Jar command line
	* Test the new end poitns developed successfully using any Rest Client (Postman, Curl, Browser etc.,)

Additional Information

* User any simple in memory java Collection for storage and retrieval (No need for database implementation)
* Utilize appropriate HTTP Methods and HTTP Codes
* Handle and Implement negative scenarios
* Create JUnit test cases for all the possible conditions (Complete test case coverage) – One Java Service Class is enough

About

Sample Spring Boot Application for Micro Services Developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.9%
  • CSS 3.8%
  • Java 1.1%
  • HTML 0.2%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.