Review Board 2.0 RC2 (dev)


Add an Item-Content-Type header to Web API responses for list resources.

Review Request #3172 - Created July 3, 2012 and submitted

Information
Steven MacLeod
Djblets
release-0.6.x
Reviewers
djblets
chipx86
Added an Item-Content-Type header to Web API responses for list resources. This header provides the mime-type for the item resource of the list.

Introduces a new 'allowed_mimetypes' attribute to WebAPIResources, and starts the process of deprecating 'allowed_list_mimetypes', and 'allowed_item_mimetypes'. Any items missing from 'allowed_mimetypes' found in 'allowed_list_mimetypes', or 'allowed_item_mimetypes' will be appended during initialization to be backwards compatible.
Wrote new test cases to check the generated Item-Content-Type header, ran all Djblets tests, and manually tested in a web browser.

Issue Summary

14 0 13 1
Description From Last Updated Status
Review request changed
Updated (Aug. 2, 2012, 11:31 p.m.)

Status: Closed (submitted)

Change Summary:

Pushed to release-0.6.x (1c76d29)