anchor.diff:  -module(amoc_api_helper).
   
   -export([get/1, get/2, post/2, post/3, patch/2, patch/3]).
  -
   
   -spec get(string()) -> {integer(), jiffy:jiffy_decode_result()}. 
   get(Path) -> get(get_url(), Path).
  
positive.code:                 <<"">> -> [];
                  _ -> jiffy:decode(Body)
                end,
      {erlang:binary_to_integer(CodeHttpBin), BodyErl}.
  
  -spec get_url() -> string().
  
negative.code:     {integer(), jiffy:jiffy_decode_result()}.
  post(BaseUrl, Path, Body) -> 
      request(BaseUrl, erlang:list_to_bitstring(Path), <<"POST">>, Body).
  
  -spec patch(string(), binary()) ->
      {integer(), jiffy:jiffy_decode_result()}.
  