79209521

Date: 2024-11-21 02:55:56
Score: 0.5
Natty:
Report link

The Work Items - List API uses Get method with the optional parameters (ids, asOf, fields, etc.) added in the URI, which can be limited by the URI length.

While Work Items - Get Work Items Batch API uses Post method with the parameters in the request body, allowing for larger payloads.

Therefore, they can both work when the request to call is relatively small. We can use the POST request when attempting to retrieve a large number of specific work items with parameters.

See the discussions on Can HTTP POST be limitless? and What is the maximum length of a URL in different browsers?.

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Alvin Zhao - MSFT