MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / post

Method post

tests/test_console_integration.py:104–114  ·  view source on GitHub ↗
(self, path: str, data: dict | None = None)

Source from the content-addressed store, hash-verified

102 return resp
103
104 def post(self, path: str, data: dict | None = None) -> requests.Response:
105 payload = dict(data) if data else {}
106 if self._csrf_token and "_csrf" not in payload:
107 payload["_csrf"] = self._csrf_token
108 resp = self.session.post(
109 f"{self.base_url}/console{path}",
110 data=payload,
111 allow_redirects=False,
112 timeout=30,
113 )
114 return resp
115@pytest.fixture(scope="module")
116def auth_env():
117 return _require_auth_env()

Callers 15

_console_loginMethod · 0.80
create_accountMethod · 0.80
create_userMethod · 0.80
create_access_keyMethod · 0.80
create_groupMethod · 0.80
add_group_memberMethod · 0.80
create_roleMethod · 0.80
assume_roleMethod · 0.80
import_access_keyMethod · 0.80
invalidate_cacheMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected