Permalink
Browse files

Add support for PUT requests without body

  • Loading branch information...
1 parent e96f673 commit 661f9fa41983afa359f2cc4ad12b9757e2007429 @astrada committed Sep 24, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 tools/serviceGenerator.ml
@@ -868,6 +868,9 @@ let generate_rest_method formatter inner_module_lens (id, rest_method) =
(response_module |. GapiLens.option_get |. InnerSchemaModule.ocaml_name)
else
Format.fprintf formatter "~data:()@ "
+ end else if rest_method.RestMethod.httpMethod = "PUT" then begin
+ Format.fprintf formatter
+ "~data_to_post:(fun _ -> GapiCore.PostData.empty)@ ~data:()@ "
end);
lift_io (
Format.fprintf formatter "full_url@ ";

0 comments on commit 661f9fa

Please sign in to comment.