We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213bbc4 commit 56cc728Copy full SHA for 56cc728
api/splines_endpoint.rb
@@ -2,6 +2,10 @@ module Acme
2
module Api
3
class SplinesEndpoint < Grape::API
4
format :json
5
+ parser 'hal+json', Grape::Parser::Json
6
+
7
+ content_type 'hal+json', 'application/hal+json'
8
+ content_type :json, 'application/json'
9
10
namespace :splines do
11
desc 'Get a spline.'
0 commit comments