توسعهدهندگان
GET_v1_changes
NXS Risk Policy and Governance API
GET /v1/changes EServed
Change feed: CloudEvents batch
What changed in the register, as a CloudEvents 1.0 batch (application/cloudevents-batch+json; send Accept: application/json for the {data, meta} envelope). Event types are grf. .created, updated, corrected and withdrawn; types are policy-instrument, obligation, governance-framework, checklist-item, subsite, solution and scheme. Events are derived from the snapshot diff between the source commits and carry the provenance block (repository, commit, path, SHA-256, licence, snapshotAt). corrected events come only from the correction ledger. Filter with since (a date or date-time), type, subject and the paging cursor. State: exists.
پارامترها
| نام | In | نوع | چه میکند |
|---|---|---|---|
q optional | query | string | Words that must all appear (case-insensitive), at most 200 characters |
since optional | query | string | Events at or after this date or date-time |
type optional | query | string | Event types, comma separated, for example grf.policy-instrument.updated |
subject optional | query | string | A record id (CURIE) |
cursor optional | query | string | Opaque cursor from meta.page.next or the Link header (bound to the snapshot; 400 CURSOR_STALE after it changes). Use it instead of offset. |
limit optional | query | integer | Records per page, 1 to 200 (default 50) |
offset optional | query | integer | Records to skip (default 0) |
Responses
- 200 Records with provenance
- 304 Not modified: If-None-Match matches the current ETag
- 400 BAD_PAGE, BAD_QUERY, BAD_ID or BAD_DIMENSION (an unknown or malformed industry, jurisdiction, region, regime, hazard, domain, topic, status or date) (a problem, RFC 9457)
- 404 NOT_FOUND (an unknown id or subsite), or NOT_YET_PUBLISHED where no record exists (a problem, RFC 9457)
- 429 RATE_LIMITED: open-tier limit; Retry-After says when to retry (a problem, RFC 9457)
- 500 INTERNAL (a problem, RFC 9457)
- 501 STEP_NOT_BUILT: a designed solution step answers this with what it needs (a problem, RFC 9457)
- 502 UPSTREAM_ERROR: the backend answered an error or not JSON (a problem, RFC 9457)
- 503 BACKEND_CONNECTION_OFF (a problem, RFC 9457)
- 504 UPSTREAM_TIMEOUT (a problem, RFC 9457)