refactor api_call_spec, parse and parse_spec to reflect changes in api_call.