A simple REST server and Postman collection for demoing points in our talk. At the very core of this project is the concept of increasing levels of complexity. We do this to establish a foundation with our audience. As we progress to Level 4 we will begin to see how we can use these techniques to test a dense graph of endpoints in an API environment.
This is an example application that uses the Spark framework and Kotlin to write a small, concise and fast web application.
-
Import the
postman_collection.json
into Postman. -
Open a terminal on Mac, or other command line utility.
-
Clone this repo, or download and unpack the Zip.
-
Navigate into the
source
directory from your terminal. -
Type
./gradlew build
and hit enter. (this builds the code) -
Type
java -jar build/libs/spark-webapp-fat-1.0.jar
and hit enter. (server is now running) -
Open Postman, select the "cog" at the top right of the window.
-
Select "Add" (for creating a new environment)
-
Copy the following information into Postman.
- "Environment Name" => "qaiquest_local"
- In the table, put a variable "base_url" with the initial value "http://localhost:4567/". This tells Postman where to point requests.
- Click "Update"
-
Select "qaiquest_local" from the dropdown at the top left of the screen.
-
Expand Level 1 folder, select the first API call, and select "Send"