Project policy reference

Project policy endpoint authentication, parameters, request and response contracts.

Last updated:

On this pageGET /api/p/{pid}/politikaGET /api/p/{pid}/politika/raporGET /api/p/{pid}/politika/ihlaller

Paths, 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

NameLocationTypeRequired
pidpathintegerYes
kapaliqueryintegerNo

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

FieldTypeRequiredDescription
detailValidationError[]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

NameLocationTypeRequired
pidpathintegerYes
kapaliqueryintegerNo
hepsiqueryintegerNo
formatquerystringNo

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

FieldTypeRequiredDescription
detailValidationError[]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

NameLocationTypeRequired
pidpathintegerYes
kuralquerystringYes
kapaliqueryintegerNo
offsetqueryintegerNo
limitqueryintegerNo

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

FieldTypeRequiredDescription
detailValidationError[]No

For error meanings and client actions, see the error code glossary.