Skip to content

Commit 56cc728

Browse files
committed
Support hal+json content-type.
1 parent 213bbc4 commit 56cc728

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/splines_endpoint.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ module Acme
22
module Api
33
class SplinesEndpoint < Grape::API
44
format :json
5+
parser 'hal+json', Grape::Parser::Json
6+
7+
content_type 'hal+json', 'application/hal+json'
8+
content_type :json, 'application/json'
59

610
namespace :splines do
711
desc 'Get a spline.'

0 commit comments

Comments
 (0)