Skip to content
Snippets Groups Projects
Commit 74af0a7b authored by David Trattnig's avatar David Trattnig
Browse files

Removed warnings.

parent ced63515
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ This project is based on a swagger-enabled Flask server using an *API First* app ...@@ -11,7 +11,7 @@ This project is based on a swagger-enabled Flask server using an *API First* app
Python 3.7+ Python 3.7+
MariaDB (or similar Database) MariaDB (or similar Database)
# Setup ## Installation
Install the required dependencies: Install the required dependencies:
...@@ -21,39 +21,39 @@ pip3 install -r requirements.txt ...@@ -21,39 +21,39 @@ pip3 install -r requirements.txt
pip3 install -r contrib/mariadb-requirements.txt pip3 install -r contrib/mariadb-requirements.txt
# Create database and user (change password in script) # Create database and user (change password in script)
sudo mysql -u root -p < contrib/mariadb-database.sql sudo mysql -u root -p < contrib/mariadb-database.sql
``` ```
## Getting started ## Getting started
To run the server, please execute the following from the root directory: To run the server, please execute the following from the root directory:
``` ```bash
./run.sh api ./run.sh api
``` ```
To run the API in an local development server execute: To run the API in an local development server execute:
``` ```bash
./run.sh api-dev ./run.sh api-dev
``` ```
You can access the interactive documentation here: You can access the interactive documentation here:
``` ```bash
http://localhost:8008/api/v1/ui/ http://localhost:8008/api/v1/ui/
``` ```
Your OpenAPI definition lives here: Your OpenAPI definition lives here:
``` ```bash
http://localhost:8008/api/v1/openapi.json http://localhost:8008/api/v1/openapi.json
``` ```
## Testing ## Testing
To launch the integration tests, use tox: To launch the integration tests, use tox:
```
```bash
sudo pip install tox sudo pip install tox
./run.sh test ./run.sh test
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment