如何使用哈希一致地获取模式?
How do I use a hash to fetch the schema consistently?
Agile Central (Rally) WSAPI 文档模式部分说我可以获得这样的模式:
There is an optional hash for the schema request. If it is not
provided, the service will determine the hash and redirect the request
internally. Requesting a hash that is no longer current will redirect
to the current hash.
Schema request by project (service figures out the workspace):
rally1.rallydev.com/slm/schema/v2.0/project/[ObjectID]/[Hash]
我需要一种一致的方式来获取模式 而无需 重定向。
我不知道要为 [Hash] 输入什么才能创建可靠的模式端点。我注意到 [Hash] 的自动生成值会在某个时间间隔过期。
如何附加哈希以获得一致的架构?
文档中没有示例,那么散列是什么样的呢?
是这样的吗?
rally1.rallydev.com/slm/schema/v2.0/project/12345/{"showMeTheModels": true}
还是这样?
rally1.rallydev.com/slm/schema/v2.0/project/12345/99999999
其中 12345 是我的项目 ID,99999999 是我自己选择/生成的任意数字。
提前致谢!
该哈希值可通过您将架构范围限定到的项目或工作区的 SchemaVersion 属性获得。如果您正在编写应用程序,App SDK 已经在使用 ModelFactory 构建模型的过程中为您执行此操作。
否则大体流程是:
1) 阅读 /project/12345?fetch=SchemaVersion
2) 阅读 /schema/v2.0/project/12345/[schemaversionfromstep1]
Agile Central (Rally) WSAPI 文档模式部分说我可以获得这样的模式:
There is an optional hash for the schema request. If it is not provided, the service will determine the hash and redirect the request internally. Requesting a hash that is no longer current will redirect to the current hash. Schema request by project (service figures out the workspace): rally1.rallydev.com/slm/schema/v2.0/project/[ObjectID]/[Hash]
我需要一种一致的方式来获取模式 而无需 重定向。 我不知道要为 [Hash] 输入什么才能创建可靠的模式端点。我注意到 [Hash] 的自动生成值会在某个时间间隔过期。
如何附加哈希以获得一致的架构? 文档中没有示例,那么散列是什么样的呢? 是这样的吗?
rally1.rallydev.com/slm/schema/v2.0/project/12345/{"showMeTheModels": true}
还是这样?
rally1.rallydev.com/slm/schema/v2.0/project/12345/99999999
其中 12345 是我的项目 ID,99999999 是我自己选择/生成的任意数字。
提前致谢!
该哈希值可通过您将架构范围限定到的项目或工作区的 SchemaVersion 属性获得。如果您正在编写应用程序,App SDK 已经在使用 ModelFactory 构建模型的过程中为您执行此操作。
否则大体流程是:
1) 阅读 /project/12345?fetch=SchemaVersion
2) 阅读 /schema/v2.0/project/12345/[schemaversionfromstep1]