#NEWLINE# def build_response( self , func_input , func_output ) : #NEWLINE# #INDENT# body = json . dumps ( Representation ( Model ( self . full_model_name ) ) . to_json ( func_output ) ) #NEWLINE# href = ( '/%s/%s' % ( self . model_name , func_output [ 0 ] ) ) #NEWLINE# return Response ( func_output , 201 , { #NEWLINE# #INDENT# 'Location' : href , #NEWLINE# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } )