Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

akitasoftware/akibox-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akibox Tutorial - Flask

This is a tutorial project to help you get to know Akita. It contains a Flask server implementing a toy Dropbox-like file server. You can use Akita to generate a spec for its API, make some changes, and see how API-impacting changes show up in Akita's semantic diffs.

To try out the tutorial, head over here.

Install dependencies

python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt

Run integration tests

pytest -v

The Akibox integration tests also generate a HAR file, which you can use with Akita's apispec to generate a spec for your service based in its integration tests.

Look for the HAR file in the current working directory, e.g. akita_trace_1304812.har.

Fire up the service!

Get it running:

./run.sh

In another window, make some requests:

./test.sh

You can use Akita's packet capture agent to build a spec based on network traffic to your service. Take a look at the docs for more details.

Building Docker Container

Optionally, you can build Akibox into a Docker container.

docker build -t akibox-tutorial .

Limitations

  • Does not yet handle cookies.
  • Does not yet handle redirects in responses.
  • Does not yet handle status text in responses.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published