Replies: 1 comment 3 replies
-
I'd prefer to have this on OperationIndex: api._["me.GetProfile"]
api._[(path, method)] As I see this - __call__ can be used instead of request() api._["me.GetProfile"](parameters=dict(user="…")) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An
OperationIndex
that has an ID containing a.
(e.g.me.GetProfile
) can't be accessed through the sad smiley interface without adding some kind of chained attribute functionality - at least to stay aligned with the spirit of accessors. I wrote something up for that, but it's feels hacky and I don't like it.Instead, how do you feel about an index operator for the
OpenAPI
class?This could be expanded on to handle the
api[path, method]
syntax pretty easily, too.Beta Was this translation helpful? Give feedback.
All reactions