mirror of
https://github.com/SchweizerischeBundesbahnen/polarion-requirements-inspector-service.git
synced 2026-12-04 13:28:41 +00:00
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%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .config | ||
| .github | ||
| app | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .tool-versions | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| CODING_STANDARDS.md | ||
| CONTRIBUTING.md | ||
| DCO | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| NOTICE | ||
| pyproject.toml | ||
| README.md | ||
| RELEASE.md | ||
| renovate.json | ||
| sonar-project.properties | ||
| tox.ini | ||
| uv.lock | ||
| zizmor.yml | ||
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 200application/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 200application/jsonJSON file 400plain/textBad Request: JSON Decode Error 413plain/textRequest Entity Too Large: JSON Body too large 500plain/textInternal 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