MCPcopy Create free account
hub / github.com/ezyang/ghstack / rest

Method rest

src/ghstack/github.py:86–97  ·  view source on GitHub ↗

Send a 'method' request to endpoint 'path'. Args: method: 'GET', 'POST', etc. path: relative URL path to access on endpoint **kwargs: dictionary of JSON payload to send Returns: parsed JSON response

(self, method: str, path: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

84
85 @abstractmethod
86 def rest(self, method: str, path: str, **kwargs: Any) -> Any:
87 """
88 Send a 'method' request to endpoint 'path'.
89
90 Args:
91 method: 'GET', 'POST', etc.
92 path: relative URL path to access on endpoint
93 **kwargs: dictionary of JSON payload to send
94
95 Returns: parsed JSON response
96 """
97 pass

Callers 3

getMethod · 0.95
postMethod · 0.95
patchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected