Skip to content

ShahriyarHussain/dummyapicaller

Repository files navigation

Dummy API Caller

Save APIs through a frontend and call them from your server side application/apiclient.

Requirements:

Must have Java version 11 or above installed. For a minimal JRE to run the app you can Download Eclipse Temurin JRE from here.

Running The App:

Download the jar file from Releases section. Create a folder named 'saved-responses' in the same directory as the jar to save responses. Folder structures is as follows:

dummy-api-2.0.0.jar
saved-responses
  |_GET
  |_POST
  |_DELETE
  |_PUT

Open terminal/Command Line where the jar is and type.

java -jar dummy-api-2.0.0.jar

The app should start. Go to localhost:8080 in your browser and you should see the App running.

Properties

You can find the following properties in the application.properties file.

\# Misc
logging.level.org.atmosphere = warn 
spring.mustache.check-template-location = false

\# You can change these to your liking
server.port=${PORT:8080} 
response.folder.name = saved-responses
base.url = localhost
server.error.include-stacktrace=never

Email me for any issues.

N.B. While developing the application, it is recommended to launch the Application class in debug mode from your IDE.