summaryrefslogtreecommitdiff
path: root/spec/unit/network/format_support_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2013-06-25(#21427) Respect Accept header for saveAndrew Parker1-1/+1
The REST save action will now respect the formats that are requested in the Accept header. In order to retain backwards compatibility for clients that have never been required to specify an Accept before this it will also default to :yaml when no Accept is provided. If an Accept is provided but none of the wanted formats are suitable an error is raised, just like find and search. In order to report the status of an unkown Accept header correctly this also adds the capability of raising web related exceptions that contain the HTTP response code that needs to be used.
2013-06-18Move FormatSupport into its own filePatrick Carlisle1-0/+199