- Simplistic UI. Simplistic UI Design to help quickly create Stubs for API's.
- Codeless Stubbing. There is no coding required to create a mock API. Simply click on Add New Mock & get started.
- Addtional Controls on Stubs Want to test negative scenerios? Each designed Stubs contains switches to test scenerios like failure or delayed responses.
- Save Requests Internally No need to pass on files for Stubbed Requests Internally. All the created Stubs are stored in database locally.
- Java Development Kit (JDK8)
- Database The Mock Server requires a database to store the mock Requests. The server can run with Mysql Database or H2 Database. If you are looking to run using Mysql database, mysql server is required.
The Mock Server comes in two different packages, JAR & WAR. While the Tomcat is already embeded in the project, one can use their own tomcat server to deploy the project.
- Download the Latest Release (Latest Releases)
- Place the download JAR / WAR to the directory from where you want to run the server.
- Create & Configure the application.properties within the same directory.
## Server Configuration ##
server.port=9000
server.url=http://localhost:9000/
## DataSource Configuration - H2 ##
#spring.datasource.url=jdbc:h2:file:{path/to/create/db/file}
#spring.datasource.driverClassName=org.h2.Driver
#spring.datasource.username={username}
#spring.datasource.password={password}
#spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
## DataSource Configuration - MYSQL ##
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://{host}:{port}/{dbname}
spring.datasource.username={username}
spring.datasource.password={password}
spring.datasource.initialization-mode=always
# Hibernate Configuration #
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
-
Execute the following command:
-
Linux
nohup java -jar MockServer-1.0.0.jar &
- Windows
java -jar MockServer-1.0.0.jar
The Mock Server will be started on the port provided in application.properties file.