Vote #70908
完了CRUD operations for "Issue categories" in REST API
10%
journals
r7880 lets you retrieve issue categories using: GET /projects/id.xml?include=issue_categories
--------------------------------------------------------------------------------
Done in r7882. See [[Rest_IssueCategories]].
--------------------------------------------------------------------------------
Not sure that the @:shallow => true@ is effective here (in r7881) since it is designed to apply to nested resources.
I already had a doubt for project news.
--------------------------------------------------------------------------------
I don't get it. Categories are nested resources, aren't they?
The @:shallow => true@ shortens the url for a category (eg: @/issue_categories/5@ instead of @/projects/foo/issue_categories/5@).
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> I don't get it. Categories are nested resources, aren't they?
> The @:shallow => true@ shortens the url for a category (eg: @/issue_categories/5@ instead of @/projects/foo/issue_categories/5@).
I guess you're right, I didn't make any test on my own; I guess I've been fooled by RoR documentation example where @:shallow@ option is set at parent (project) level.
--------------------------------------------------------------------------------