Service providing REST API to use Polarion Requirements Inspector functionality | Read-only mirror of https://github.com/SchweizerischeBundesbahnen/polarion-requirements-inspector-service — SBB. Issues & pull requests at the source.
  • Python 75.6%
  • Shell 13.6%
  • Dockerfile 10.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-04 00:02:24 +00:00
.config build: move to python 3.14 (#156) 2026-10-28 09:16:21 +01:00
.github ci: trust organisation-owned actions in CodeQL Actions analysis 2026-12-03 11:27:13 +01:00
app chore: replace mypy with ty for type checking (#158) 2026-10-29 14:08:47 +01:00
tests chore: adopt the shared ruff standard (#136) 2026-08-13 12:25:29 +02:00
.gitignore chore(deps): adjust dependencies for Renovate compatibility and updat… (#105) 2025-07-07 16:46:49 +02:00
.pre-commit-config.yaml chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.20.1 2026-11-27 11:23:13 +00:00
.tool-versions build: move to python 3.14 (#156) 2026-10-28 09:16:21 +01:00
CHANGELOG.md chore(main): release 3.1.0 (#95) 2026-11-11 10:53:24 +01:00
CLAUDE.md chore(tox): switch tox to uv-venv-lock-runner for faster CI (#141) 2026-08-19 14:43:58 +02:00
CODING_STANDARDS.md chore: replace mypy with ty for type checking (#158) 2026-10-29 14:08:47 +01:00
CONTRIBUTING.md chore: sync from open-source-polarion-docker-repo-template (#130) 2026-05-18 16:58:30 +02:00
DCO chore: sync from open-source-polarion-docker-repo-template (#130) 2026-05-18 16:58:30 +02:00
Dockerfile fix(deps): update registry.access.redhat.com/ubi9/ubi-minimal docker tag to v9.9-1796160797 2026-12-02 09:30:14 +00:00
entrypoint.sh feat: use uv instead of poetry (#109) 2026-02-25 11:27:04 +01:00
LICENSE chore: sync from open-source-polarion-docker-repo-template (#130) 2026-05-18 16:58:30 +02:00
NOTICE chore: sync from open-source-polarion-docker-repo-template (#130) 2026-05-18 16:58:30 +02:00
pyproject.toml fix(deps): update dependency ty to v0.0.115 2026-12-04 00:02:24 +00:00
README.md feat: use uv instead of poetry (#109) 2026-02-25 11:27:04 +01:00
RELEASE.md Initial commit 2024-11-07 10:56:35 +01:00
renovate.json fix(renovate): skip minimumReleaseAge for python-requirements-inspector 2026-02-27 11:33:22 +01:00
sonar-project.properties chore: poetry update (#93) 2025-03-28 14:51:51 +01:00
tox.ini chore: replace mypy with ty for type checking (#158) 2026-10-29 14:08:47 +01:00
uv.lock fix(deps): update dependency ty to v0.0.115 2026-12-04 00:02:24 +00:00
zizmor.yml chore: sync from open-source-polarion-docker-repo-template (#130) 2026-05-18 16:58:30 +02:00

Polarion Requirements Inspector Service

Service providing REST API to use Polarion Requirements Inspector functionality

Build Docker image

  docker build \
    --build-arg APP_IMAGE_VERSION=0.0.0-dev \
    --file Dockerfile \
    --tag polarion-requirements-inspector-service:0.0.0-dev \
    .

Start Docker container

  docker run --detach \
    --init \
    --publish 9081:9081 \
    --name polarion-requirements-inspector-service \
    polarion-requirements-inspector-service:0.0.0-dev

Stop Docker container

  docker container stop polarion-requirements-inspector-service

Access service

Polarion Requirements Inspector Service provides the following endpoints:

GET /version
Responses
HTTP code Content-Type Response
200 application/json {"python":"3.12.3","polarion_requirements_inspector":"4.0.0","polarion_requirements_inspector_service":"2.0.1"}
Example cURL
 curl -X GET -H "Content-Type: application/json" http://localhost:9081/version

Analyze work items

POST /inspect/workitems
Body
Type Data type Description
Required JSON string JSON encoding of type list[WorkItem]
Responses
HTTP code Content-Type Response
200 application/json JSON file
400 plain/text Bad Request: JSON Decode Error
413 plain/text Request Entity Too Large: JSON Body too large
500 plain/text Internal Server Error: Unknown Error
Example cURL
  curl -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  --data '[{"title":"example","description":"example","language":"en"}]' \
  http://localhost:9081/inspect/workitems

Testing Docker image

docker build -t polarion-requirements-inspector-service:local .
container-structure-test test --image polarion-requirements-inspector-service:local --config .config/container-structure-test.yaml