Skip to content

Commit d6b1cd0

Browse files
satwikareddy3meta-codesync[bot]
authored andcommitted
Update codegen to accomodate stefi endpoints
Summary: these changes are to accomodate stefi endpoints Reviewed By: liliarizona Differential Revision: D91635691 fbshipit-source-id: d9531e4958c56e39817f950da1db1c0c771cbfd9
1 parent f172238 commit d6b1cd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

facebook_business/api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ def __init__(
547547
node_id,
548548
method,
549549
endpoint,
550+
base_path=None,
550551
api=None,
551552
param_checker=TypeChecker({}, {}),
552553
target_class=None,
@@ -574,7 +575,10 @@ def __init__(
574575
self._node_id = node_id
575576
self._method = method
576577
self._endpoint = endpoint.replace('/', '')
577-
self._path = (node_id, endpoint.replace('/', ''))
578+
if base_path:
579+
self._path = (base_path.strip('/'), str(node_id))
580+
else:
581+
self._path = (node_id, endpoint.replace('/', ''))
578582
self._param_checker = param_checker
579583
self._target_class = target_class
580584
self._api_type = api_type

0 commit comments

Comments
 (0)