配置修订史(事实源 = audit_log action=config.revision,appendAudit 通道):?scope=&keyPath=(scope=team 另带 ?team=)精确一键;org/team 收口 owner/admin(shadow-report 同律),user 本人;近序 ≤100 行;detail 携 from/to/locked/enforcement/revision/reason 与 shadow 锁 wouldDeny 观测标注
GET
/v1/config-revisions
const url = 'https://api.tansr.com/v1/config-revisions?scope=org&keyPath=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tansr.com/v1/config-revisions?scope=org&keyPath=example' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tansr-org
string
Org 作用域声明(org 公开 id);服务端校验成员资格与角色,非成员恒 404、角色不够 403
Query Parameters
Section titled “Query Parameters”scope
required
string
keyPath
required
string
team
string
Responses
Section titled “Responses”修订史(近序)
Media typeapplication/json
object
data
required
Array<object>
Example
{ "data": [ { "enforcement": "shadow" } ]}Bad_request(缺 scope/keyPath)
Media typeapplication/json
object
error
required
object
code
required
错误码注册表单源派生(src/http/errors.ts ERROR_CODES;码稳定,消费方按码翻译)
string
message
required
string
requestId
required
string
detail
object
Example
{ "error": { "code": "adjudicator_not_authorized" }}本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。