Skip to content

Unobtrusive script for documenting your HTTP API automatically through tests.

Notifications You must be signed in to change notification settings

michaelmcmillan/Stenograpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stenograpi

Document your HTTP API automatically through tests.

Build Status Build status Coverage Status Coverage Status

Stop worrying about keeping your documentation in sync with your HTTP API. Simply proxy your integration tests through Stenograpi and receive documentation on the other end.

Install

Stenograpi is a standalone Python script that has no external dependencies. Simply run the following command to retrieve the script.

wget https://raw.githubusercontent.com/michaelmcmillan/Stenograpi/master/dist/stenograpi.py

Usage

Start Stenograpi by running the script from your command line.

python3 stenograpi.py localhost 1337 localhost 1338

In your integrated tests, replace the hostname and port of the application you are testing with Stenograpi's hostname and port.

Mechanics

Stenograpi steps in between your tests and your application. However, neither your tests nor your application will notice any difference.

Request flow

While the requests and responses are delivered as usual, Stenograpi will create Markdown documents describing the exchange. The documents are written with developers in mind, see for yourself.

About

Unobtrusive script for documenting your HTTP API automatically through tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published