Stalled on T428175: π P1: Create database schema and models for policies and policy acceptances
Create a Resource/Resource Collection and a Controller to return the current list of polices that must be signed.
Polices that must be accepted are the most recent instance of a given type that have an active_from date in the past.
Add an endpoint @ GET /v1/policies/current. This endpoint requires no authentication.
with example JSON response:
{
"items": [
{
"metadata": {
"policy_id": 2
"type": "hosting-policy",
"active_from": "2025-12-25",
"content_vue_file": "hosting-policy/version-1.vue"
}
},
{
"metadata": {
"policy_id": 3
"type": "terms-of-use",
"active_from": "2024-11-07",
"content_vue_file": "terms-of-use/version-2.vue"
}
},
...
]
}PRs