Project

General

Profile

Actions

Defect #7427

closed

Use one xml schema per entity type

Added by Andrey Bruggemann almost 14 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
2011-01-24
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

Would be better if find (GET) and create/update (POST/PUT) methods use the same xml schema, for each entity type.
For example, the xml schema for issue creation are:

<issue>
  <subject>Example</subject>
  <project_id>1</project_id>
  <priority_id>4</priority_id>
</issue>

But should be:
<issue>
  <subject>Example</subject>
  <project>
    <id>1</id>
  </project>
  <priority>
    <id>4</id>
  </priority>
</issue>

Actions

Also available in: Atom PDF