Project policy reference
Project policy endpoint authentication, parameters, request and response contracts.
Last updated:
On this page
GET /api/p/{pid}/politikaGET /api/p/{pid}/politika/raporGET /api/p/{pid}/politika/ihlallerPaths, methods, parameters and available schemas are generated from the OpenAPI document in the repository.
Note: These endpoints form the browser application contract and do not provide the same versioning assurance as v1. Use the versioned API for external integrations.
GET /api/p/{pid}/politika
Get project policy
Policy register: rule levels, disabled by default, baseline counts and exceptions. Available to Viewers; writes no data.
Authentication: User session (cookie). Scope: Relevant organisation/project membership and operation permission; writes also check the current role, module and licence permissions.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
pid | path | integer | Yes |
kapali | query | integer | No |
Responses
HTTP 200
application/json
This OpenAPI document does not define a body schema. See the relevant developer guide for details.
HTTP 422
application/json
| Field | Type | Required | Description |
|---|---|---|---|
detail | ValidationError[] | No |
For error meanings and client actions, see the error code glossary.
GET /api/p/{pid}/politika/rapor
Get policy report
Bulk validation report (K10): rule × level × {violation, within baseline, excepted, expired, new}. Up to 500 examples (`kesildi`); includes `generated_at` and the latest changes.id. hepsi=1 also evaluates disabled rules so they can be reviewed before enabling. format=csv returns example rows.
Authentication: User session (cookie). Scope: Relevant organisation/project membership and operation permission; writes also check the current role, module and licence permissions.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
pid | path | integer | Yes |
kapali | query | integer | No |
hepsi | query | integer | No |
format | query | string | No |
Responses
HTTP 200
application/json
This OpenAPI document does not define a body schema. See the relevant developer guide for details.
HTTP 422
application/json
| Field | Type | Required | Description |
|---|---|---|---|
detail | ValidationError[] | No |
For error meanings and client actions, see the error code glossary.
GET /api/p/{pid}/politika/ihlaller
Get policy violations
Violation details for one rule. Paginated and assessed independently of its level.
Authentication: User session (cookie). Scope: Relevant organisation/project membership and operation permission; writes also check the current role, module and licence permissions.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
pid | path | integer | Yes |
kural | query | string | Yes |
kapali | query | integer | No |
offset | query | integer | No |
limit | query | integer | No |
Responses
HTTP 200
application/json
This OpenAPI document does not define a body schema. See the relevant developer guide for details.
HTTP 422
application/json
| Field | Type | Required | Description |
|---|---|---|---|
detail | ValidationError[] | No |
For error meanings and client actions, see the error code glossary.