Naive solution for a basic REST API testing framework. This framework was designed to interact with the Basic RestAPI App. Make sure you run the Basic RestAPI App
before setting up this project.
This project is used for educational purposes. It encourages users to enhanced it and adapt it to their needs. The idea is to start with the most simple solution and build on top of it.
The framework was designed to run inside a Docker
container to strip out the complexity of setting virtual environments, facilitate its distribution and avoid the infamous but it works on my machine conversation.
-
Open a terminal
-
Change to your favorite local directory (i.e.
cd /opt
) -
Clone the repository
git clone git@github.com:jllopez/basic-restapi-testfwk.git
- Change to the project root directory
cd /opt/basic-restapi-testfwk
- Create a new file, name it
secrets.ini
and add the following contents
APP_URL=http://host.docker.internal:8080
ADMIN_USER=admin
ADMIN_PASSWORD=admin
- Start development environment
make dev
This command will remove any existing
restapi_testfwk
containers, build a newtest/restapi_testfwk
image, start a container, mount local code under/opt/restapi_testfwk
and provide a/bin/bash
terminal.