|
1 | 1 | # Postman PyPNMApps API Collections |
2 | 2 |
|
3 | | -This repository contains Postman collections, environment/globals files, and example visualizers for PyPNM API workflows. |
| 3 | +[](https://github.com/PyPNMApps/Postman-PyPNMApps-API/actions/workflows/python-ci.yml) |
| 4 | +[](https://github.com/PyPNMApps/Postman-PyPNMApps-API/actions/workflows/mkdocs-site-build.yml) |
| 5 | +[](https://github.com/PyPNMApps/Postman-PyPNMApps-API/actions/workflows/mkdocs-pages-deploy.yml) |
| 6 | +[](https://www.mkdocs.org/) |
| 7 | +[](LICENSE) |
| 8 | +[](https://pypnmapps.github.io/Postman-PyPNMApps-API/) |
4 | 9 |
|
5 | | -## What This Repo Provides |
| 10 | +This repository contains Postman collections, environment/globals files, and example visualizers for PyPNM API workflows. |
6 | 11 |
|
7 | | -- `postman/collections/PyPNM.postman_collection.json` (primary collection) |
8 | | -- `postman/collections/PyPNM-CMTS.postman_collection.json` (placeholder shell) |
9 | | -- `postman/environments/PyPNM Remote Server.postman_environment.json` |
10 | | -- `postman/globals/workspace.postman_globals.json` |
11 | | -- `visual/` example Postman Visualizer templates + sample data |
| 12 | +It includes: |
| 13 | +- Postman collections (`PyPNM`, `PyPNM-CMTS`) |
| 14 | +- environment and globals exports |
| 15 | +- `visual/` example Postman Visualizer HTML + JSON fixtures |
12 | 16 |
|
13 | 17 | ## Basic Setup |
14 | 18 |
|
15 | | -1. Install Postman Desktop: `https://www.postman.com/downloads/` |
| 19 | +1. Install Postman Desktop (Ubuntu/Windows): `docs/postman-install.md` |
16 | 20 | 2. Clone this repository: |
17 | 21 |
|
18 | 22 | ```bash |
19 | 23 | git clone https://github.com/PyPNMApps/Postman-PyPNMApps-API.git |
20 | 24 | cd Postman-PyPNMApps-API |
21 | 25 | ``` |
22 | 26 |
|
23 | | -3. In Postman, import: |
24 | | - - `postman/collections/PyPNM.postman_collection.json` |
25 | | - - `postman/collections/PyPNM-CMTS.postman_collection.json` |
26 | | - - `postman/environments/PyPNM Remote Server.postman_environment.json` |
27 | | - - `postman/globals/workspace.postman_globals.json` |
28 | | - |
29 | | -4. Set `pypnm_url` in Postman Globals (example: `http://127.0.0.1:8000`) |
| 27 | +3. Import collections/environment/globals and configure `pypnm_url`: |
| 28 | + - `docs/postman-import-and-navigation.md` |
30 | 29 |
|
31 | | -Important: |
32 | | -- Collection requests use `{{pypnm_url}}` (global), while the provided environment includes `base_url`. |
33 | | - |
34 | | -## Local Tooling (Repo Maintenance) |
35 | | - |
36 | | -This repo uses local Python tooling in `tools/` for sanitization, versioning, and release workflows. |
| 30 | +## Install (Local Tooling + Docs) |
37 | 31 |
|
38 | 32 | ```bash |
39 | 33 | ./install.sh |
40 | 34 | ``` |
41 | 35 |
|
42 | | -Common commands: |
| 36 | +Run the local MkDocs site (default local docs port for this repo: `8030`): |
43 | 37 |
|
44 | 38 | ```bash |
45 | | -.venv/bin/python tools/sanitize.py --check |
46 | | -.venv/bin/python tools/sanitize.py --fix |
47 | | -.venv/bin/python tools/support/bump_version.py --version 0.1.1 --check |
48 | | -.venv/bin/python tools/release/release.py --version-info |
49 | | -./tools/git/git-save.sh --help |
50 | | -./tools/git/git-push.sh --help |
| 39 | +source .venv/bin/activate |
| 40 | +tools/docs/build_visual_docs.py |
| 41 | +mkdocs serve -a 127.0.0.1:8030 |
51 | 42 | ``` |
52 | 43 |
|
53 | | -Version source of truth: |
54 | | -- `VERSION` (must stay in sync with `pyproject.toml`) |
55 | | - |
56 | | -## Documentation |
| 44 | +Open: |
| 45 | +- `http://127.0.0.1:8030/` |
57 | 46 |
|
58 | | -Detailed instructions were moved to `docs/`: |
| 47 | +## Start Here |
59 | 48 |
|
60 | | -- `docs/docs-index.md` (docs index) |
61 | | -- `docs/user-guide.md` (full Postman import/use walkthrough) |
62 | | -- `docs/tools.md` (sanitize/version/release/git helpers) |
63 | | -- `docs/release.md` (release process and versioning) |
| 49 | +- [Docs Home](docs/docs-index.md) |
| 50 | +- [Postman Install (Ubuntu/Windows)](docs/postman-install.md) |
| 51 | +- [Postman Import and Navigation](docs/postman-import-and-navigation.md) |
0 commit comments