Add submission_activities
index endpoint
Added endpoint to query submission activities, this allow to get activities for a
specific submission and paginate them over the 100 on includable resources|
event and actor can be included in the response
{
"data": [
{
"id": "ccfcb1d0-becd-45ec-a3ab-030a748b525e",
"type": "activity",
"attributes": {
"created_at": "2025-02-05T06:00:00.000Z",
"key": "submission.transitioned"
},
"relationships": {
"actor": {
"data": {
"id": "9e30878b-265b-4455-9ee6-12ccc3288c2f",
"type": "identity"
},
"links": {
"related": {
"href": "(NOT IMPLEMENTED YET)"
}
}
},
"event": {
"data": {
"id": "f369a0f5-0305-4866-8416-93d0c0a55db0",
"type": "event"
},
"links": {
"related": {
"href": "(NOT IMPLEMENTED YET)"
}
}
},
"program": {
"data": {
"id": "53c5855e-fd12-4e9c-a298-8d0f3cda9989",
"type": "program"
},
"links": {
"related": {
"href": "/programs/53c5855e-fd12-4e9c-a298-8d0f3cda9989"
}
}
},
"submission": {
"data": {
"id": "cafd24c8-b2e5-44b6-87df-0190f0d3da74",
"type": "submission"
},
"links": {
"related": {
"href": "/submissions/cafd24c8-b2e5-44b6-87df-0190f0d3da74"
}
}
}
},
"links": {
"self": "(NOT IMPLEMENTED YET)"
}
}
],
"included": [
{
"id": "9e30878b-265b-4455-9ee6-12ccc3288c2f",
"type": "identity",
"attributes": {
"name": "bounty-viewer",
"email": "bounty-viewer@redama.com",
"staff": false
},
"links": {
"self": "(NOT IMPLEMENTED YET)"
}
},
{
"id": "f369a0f5-0305-4866-8416-93d0c0a55db0",
"type": "event",
"attributes": {
"created_at": "2025-02-05T01:12:36.909Z",
"key": "submission.updated.transitioned",
"data": {
"changes": {
"substate": {
"to": "not_applicable",
"from": "nue"
}
},
"duplicate_ids": []
}
},
"relationships": {
"resource": {
"data": {
"id": "cafd24c8-b2e5-44b6-87df-0190f0d3da74",
"type": "submission"
},
"links": {
"related": {
"href": "/submissions/cafd24c8-b2e5-44b6-87df-0190f0d3da74"
}
}
},
"actor": {
"data": {
"id": "9e30878b-265b-4455-9ee6-12ccc3288c2f",
"type": "identity"
},
"links": {
"related": {
"href": "(NOT IMPLEMENTED YET)"
}
}
}
},
"links": {
"self": "(NOT IMPLEMENTED YET)"
}
}
],
"meta": {
"total_hits": 1,
"count": 1
},
"links": {
"self": "/submissions/cafd24c8-b2e5-44b6-87df-0190f0d3da74/activities?include=actor,event",
"next": "/submissions/cafd24c8-b2e5-44b6-87df-0190f0d3da74/activities?id=cafd24c8-b2e5-44b6-87df-0190f0d3da74&include=actor,event&page[limit]=25&page[offset]=25",
"previous": "/submissions/cafd24c8-b2e5-44b6-87df-0190f0d3da74/activities?id=cafd24c8-b2e5-44b6-87df-0190f0d3da74&include=actor,event"
}
Add submission_comments
index endpoint
Added endpoint to query submission comments, this allow to get comments for a
specific submission and paginate them over the 100 on includable resources|
author and file_attachment can be included in the response
{
"data": [
{
"id": "82bcc1b8-147e-4f29-8f65-e92ab80130c2",
"type": "comment",
"attributes": {
"body": "A comment",
"created_at": "2025-04-23T16:49:14.797Z",
"visibility_scope": "everyone"
},
"relationships": {
"author": {
"data": {
"id": "49ceae08-148b-4d3b-a72f-876fd93b414a",
"type": "identity"
},
"links": {
"related": {
"href": "(NOT IMPLEMENTED YET)"
}
}
},
"file_attachments": {
"data": [],
"links": {
"related": {
"href": "(NOT IMPLEMENTED YET)",
"meta": {
"count": 0,
"total_hits": 0
}
}
}
}
},
"links": {
"self": "(NOT IMPLEMENTED YET)"
}
}
],
"meta": {
"total_hits": 1,
"count": 1
},
"links": {
"self": "/submissions/17420a17-29c2-46ef-9555-db3a3363a631/comments",
"next": "/submissions/17420a17-29c2-46ef-9555-db3a3363a631/comments?id=17420a17-29c2-46ef-9555-db3a3363a631&page[limit]=25&page[offset]=25",
"previous": "/submissions/17420a17-29c2-46ef-9555-db3a3363a631/comments?id=17420a17-29c2-46ef-9555-db3a3363a631"
}
}
Remove pagination offset limit
Remove pagination offset limit, now the records can be paginated over the
10,000 previous limit