Skip to content

elans3/virtualan-springboot-controller-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD Spring-boot RestController With Virtualan

What is Virtualan : Virtualan would be build with spring boot framework that would convert API service as Virtualized service in matter of adding couple of annotations. Simply as Virtualized service which currently supports spring-boot based Rest service(API) with Spring-RestController or CXF-Jaxrs as Virtualized service with @VirtualService and @ApiVirtual annotaions.

How it could be useful: In the Agile world, We need to develop (Micro)services & Test the services in parallel. How can tester or development team can develop or test parallel to all the APIs before the real Microservices would be developed? Here Virtualized service comes into the picture.

Invoke Virtualan UI:

- user interface refer: https://github.com/elan-venture/virtualan/wiki 	
- Navigate to http://localhost:8080/virtualan-ui.html 

Prerequisites: (If you have already done set up JDK and Maven - skip this step)

- JDK(Mandatory) -  	http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- JDK Installation:(Refer following Video and Article
	- https://www.youtube.com/watch?v=r0jN33ZOmWM 
	- https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html (till step 4)
 - JAVA_HOME set up(Mandatory) :
 	- http://roufid.com/no-compiler-is-provided-in-this-environment/
  • Apache Maven(Mandatory) - https://maven.apache.org

      - Apache Maven: (Refer following Video and Article)
      - https://www.youtube.com/watch?v=3ODSQ0EpoQI
      - https://www.mkyong.com/maven/how-to-install-maven-in-windows/
    
  • GIT (optional)

       - GIT Setup(Optional): (Refer following Video and Article)
      - https://www.youtube.com/watch?v=albr1o7Z1nw
      - https://www.codecademy.com/articles/git-setup
    

======= Spring-boot RestController With Virtualan

Prerequisites: (If you have already done set up JDK and Maven - skip this step)

Download the project and extract the project file:

  • Navigate to root directory of the folder where pom.xml was present:

  • Build:

       - mvn clean install  
    
    • If you have any proxy issue use this command: mvn -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 clean install
  • Run using standalone JAR:

    • java -jar target/virtualan-springboot-controller-example-1.0.0.jar
  • To set up mock data:

    - Using Virtualan-UI:       
    	https://github.com/elan-venture/virtualan/wiki/Test-Data-Set-up-using-Virtualan
    
    - Using Virtualan-Rest service:
    	https://github.com/elan-venture/virtualan/blob/master/test/virtualan-test-data/src/main/resources/features/pet/pet.feature
    	https://github.com/elan-venture/virtualan/tree/master/samples/virtualan-openapi-spring-mapping/src/test/java/io/virtualan/test
    
  • Invoke User REST service:
    using your rest client or curl http://localhost:8080/users

  • Invoke Virtualan UI:

branch 'master' of https://github.com/elans3/virtualan-springboot-controller-example.git

About

Virtualan with springboot and rest controller example project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published