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.

Issues

14 0 13 1
Description From Last Updated Status
Christian Hammond
Steven MacLeod
Mike Conley
Steven MacLeod
Mike Conley
Christian Hammond
Steven MacLeod
Steven MacLeod
Christian Hammond
Steven MacLeod
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.6.x (1c76d29)
Loading...