postport

Crates.iopostport
lib.rspostport
version0.1.1
sourcesrc
created_at2021-12-26 10:46:51.679263
updated_at2021-12-26 10:46:51.679263
descriptionPublish your backend documentation from a Postman Collection as a static website with an interactive API
homepage
repository
max_upload_size
id503257
size70,351
Jack Clayton (jackos)

documentation

README

Postport

Currently in experimentation phase

Intro

Publish your backend documentation from a Postman Collection as a static website with an interactive API.

Static Site

Uses Svelte, TailwindCSS and Vite to generate the website and allow for hot reloading, folders and requests have classes applied to them, and the styling is controlled for the classes via Tailwind directives in the app.css file.

Configuration

config.yaml at the root of this repo can be changed to allow retrieval of remote Postman collections via the Postman API e.g.

Get your Postman API key

Get your collection ID by clicking the three dots next to its name and clicking settings

collection_from_api: true
postman_api_key: "XXXXX-XXXXX-XXXXX-XXXX"
collection_id: "XXXXXXX-XXXXXXXXX-XXXXXXXXX-XXXXXX"

You can override the base config.yaml by putting a new file in your config folder:

Linux

Path

$XDG_CONFIG_HOME/postport/config.yaml or $HOME/.config/postport/config.yaml

Example

/home/alice/.config/postport/config.yaml

MacOS

Path

$HOME/Library/Application Support/postport/config.yaml

Example

/Users/Alice/Library/Application Support/postport/config.yaml

Windows

Path

{FOLDERID_RoamingAppData}\postport\config.yaml

Example

C:\Users\Alice\AppData\Roaming\postport\config.yaml

Commit count: 0

cargo fmt